Re: performSelectorOnMainThread primitives for withObject
Re: performSelectorOnMainThread primitives for withObject
- Subject: Re: performSelectorOnMainThread primitives for withObject
- From: Keith Duncan <email@hidden>
- Date: Wed, 22 Apr 2009 17:31:38 +0100
Is this supposed to work or not?
- (void) setActivated:(BOOL)theStatus;
[view performSelectorOnMainThread:@selector(setActivated:)
withObject:[NSNumber numberWithBool:YES] waitUntilDone:YES];
This won't work since the boolean isn't auto-unboxed. Your method
should accept an NSNumber wrapping a boolean or use another
interthread messaging method such as distributed objects or an NSProxy
subclass.
Keith
_______________________________________________
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:
This email sent to email@hidden