posting an application-defined event (NSEvent of type
NSApplicationDefined) to the event queue doesn't solve the menu
refreshing issue.

On Sat, Apr 21, 2012 at 3:44 PM, Ken Thomases <k...@codeweavers.com> wrote:
> On Apr 20, 2012, at 1:32 PM, vinayak pai wrote:
>
>> Yes. I am facing the same problem. I am updating the menu in
>> performSelectorOnMainThread. If the menu is kept open without any
>> event then there is menu refreshing issue ie. sometimes some items
>> will be shown twice. When I move the mouse over items then it will
>> update. But, when the menu is open and mouse is still then  the menu
>> won't update. Is there a way to update the menu while it's open
>> without any mouse movement like System WiFi menu?
>
> I'm not sure.  If menus are shown twice, then I suspect a synchronization bug 
> in your code.
>
> You can try posting an application-defined event (NSEvent of type 
> NSApplicationDefined) to the event queue after you've changed the menus.
>
> Regards,
> Ken
>

_______________________________________________

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