| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Date: Mon, 31 Mar 2008 12:20:41 -0700 From: Mike <email@hidden> Subject: Re: Main Thread UI and Detached Thread To: Apple Cocoa List <email@hidden> Message-ID: <email@hidden> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
I have two methods in the main thread that I call from the worker using performSelector, etc. The method for updating the progress bar for example looks like this:
- (void)setProgressBarValue:(double)value { if( progressBar ) { [ progressBar setDoubleValue:value ];
[ progressBar setNeedsDisplay:YES ];
[ progressBar display ]; } }
are you calling: performSelectorOnMainThread:withObject:waitUntilDone: (or one of its variants) passing in a selector for setProgressBarValue: ?
ken _______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/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.