| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
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.
- (IBAction)sort:(id)sender
{
[sortingIndicator startAnimation:self];
[sortingIndicator displayIfNeeded];
NSDate * now = [NSDate date];
switch ([whichSort selectedTag]) {
case 0:
[dll selectionSort];
break;
case 1: [dll insertionSort];
break;
case 2: [dll mergeSort];
break;
default: [dll quickSort];
break;
}
float secs = -1.0 * (float)[now timeIntervalSinceNow];
[elapsedTime setFloatValue: secs];
[sortingIndicator stopAnimation:self];
//[dll printList];
}
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
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.