Re: Dock menu item action isn't performed in modal state
Re: Dock menu item action isn't performed in modal state
- Subject: Re: Dock menu item action isn't performed in modal state
- From: Peter Ammon <email@hidden>
- Date: Wed, 7 Jan 2009 14:06:45 -0800
On Jan 7, 2009, at 8:05 AM, Ondrej Valik wrote:
Hello.
I'm using delegate's applicationDockMenu: method for returning my
custom dock menu. It has a single menu item. This menu item has its
target/action properly set up and my dock menu delegate implements
worksWhenModal method (returning YES). So my menu item is enabled
when my app is in modal state.
Nevertheless, my action isn't called when app is in modal state.
Apple defined menu items such as "Show in Finder" works correctly.
I have made some investigation about other applications:
- this sample: http://developer.apple.com/samplecode/DeskPictAppDockMenu/index.html
has the same problem (you could show page setup dialog)
- iTunes (but it's Carbon app?) custom dock menu items works OK.
Is there any way how to make custom dock menu item working in modal
state?
Thanks in advance for any suggestions.
Ondrej Valik
I think this is a limitation of AppKit, and I do not see a
workaround. Please file a bug at http://bugreport.apple.com
Thanks,
-Peter
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden