On Mon, Mar 15, 2010 at 2:32 PM, Rick Mann <rm...@latencyzero.com> wrote: > Instead of passing my operation a target and selector, is there any way I can > just pass it a block, but then have it execute that block on the main thread?
[[NSOperationQueue mainQueue] addOperationWithBlock: ^{ ... }]; or: dispatch_async(dispatch_get_main_queue(), ^{ ... }); -- Clark S. Cox III clarkc...@gmail.com _______________________________________________ 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