On Nov 15, 2012, at 3:17 PM, Graham Cox wrote:

> How can I invoke a method of my protocol on the main thread?

Aside from Greg's simple suggestion, GCD is your friend. Then you're not 
beholden to a single method call, or the interface requirements of the 
performSelector methods.

dispatch_async(dispatch_get_main_queue(), ^{ anything; });


--
Seth Willits


_______________________________________________

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to