On Wed, Apr 22, 2009 at 12:13 PM, Torsten Curdt <tcu...@vafer.org> wrote: > Hey folks, > > Is this supposed to work or not? > > - (void) setActivated:(BOOL)theStatus; > > [view performSelectorOnMainThread:@selector(setActivated:) > withObject:[NSNumber numberWithBool:YES] waitUntilDone:YES]; > > It does not seem like it works that way.
Is it documented to work that way? No. > Do I really have to use NSInvocation for this? Of course not. There are always alternatives. You could, say, write a -setActivatedWithNSNumber: method that manually unboxes the number. You could write a higher-order message for main-thread performs. Mike _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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/archive%40mail-archive.com This email sent to arch...@mail-archive.com