Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UIActivityIndicatorView for Mac OS X?

Tags:

Is't there a "NSActivityIndicatorView" for Mac OS X like the UIActivityIndicatorView for iOS?

How can I show a spinning "gear" during long activities?

like image 925
Dev Avatar asked Mar 03 '11 17:03

Dev


1 Answers

You can use NSProgressIndicator.

Here is an initialization of it.

NSProgressIndicator* indicator = [[[NSProgressIndicator alloc] initWithFrame:NSMakeRect(20, 20, 30, 30)] autorelease]; [indicator setStyle:NSProgressIndicatorSpinningStyle]; 
like image 148
lbrndnr Avatar answered Sep 29 '22 11:09

lbrndnr