>> It does not seem I can invoke this on the main thread. > An NSInvocation?
>> Basically I just need to use a function pointer. How does Cocoa do >> this? >> >> I need to pass either someMethod or someOtherMethod and later call >> it with >> >> [self performSelectorOnMainThread:theMethod withObject:nil >> waitUntilDone:NO]; >> >> Is this normally done with NSStringFromSelector and >> NSSelectorFromString ? > Yes, I am calling this from within a thread, but it needs to run on the main thread, thus the use of performSelectorOnMainThread _______________________________________________ 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