On May 19, 2010, at 4:02 AM, Jonny Taylor wrote: > I've noticed a slight issue (with both NSInvocation and NSOpQ) when a menu is > pulled down and posting styles NSPostASAP or NSPostWhenIdle are used. While > the menu is visible, the notifications are posted ok (on the main thread), > but objects do not receive the notifications until the menu is released. I > don't quite understand why this should be (is the main loop not running when > a menu is displayed, or are menu-related events somehow jumping the queue and > preventing my notifications from reaching the head of the queue?).
Not quite; the main runloop is running in a different mode, likely NSEventTrackingRunLoopMode. Try enqueuing your notification with an array of specific modes, or maybe NSRunLoopCommonModes. -- Adam _______________________________________________ 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