It's not working because the event loop isn't running, which is when
the display methods are called.
Use an NSTImer instead that calls a method that spins the progress
indicator until you set a flag when you're done sorting (before the
"break" in your code).
Or use threads, and do the sort on another thread. That's a single
method call; check the NSObject documentation.
There are probably other ways.
Eric Ocean
On Sep 30, 2004, at 3:26 PM, Berndt Jung wrote:
Below is a snippit of code. I want he progress indicator to keep
"spinning" while it sorts the list. As is, it stops as soon as it
hits the [dll ****sort] method call.
Thanks.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/
email@hidden
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden