Results tagged “source code” from Cocoa Machine

I had someone in IRC chat ask how to get a progress bar like the ones shown in the table rows in the MobileStore.app.  I threw together this class that accomplishes that goal.  Just copy all the DownloadProgress*.png files from MobileStore.app to your app directory.  Download Here

Example use:

CMProgressControl progressControl = [[CMProgressControl alloc] initWithFrame: CGRectMake(0.0f, 0.0f, 320.0f, 30.0f)];
[progressControl setMinValue: 0];
[progressControl setMaxValue: 100];
[progressControl setValue: 15.0];

Add it to your main view:

[mainView addSubview: progressControl];

Hope some of you can find this useful.

- socketface