• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Dock menu item action isn't performed in modal state
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Dock menu item action isn't performed in modal state


  • Subject: Dock menu item action isn't performed in modal state
  • From: Ondrej Valik <email@hidden>
  • Date: Wed, 7 Jan 2009 17:05:38 +0100

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
_______________________________________________

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


  • Follow-Ups:
    • Re: Dock menu item action isn't performed in modal state
      • From: Peter Ammon <email@hidden>
  • Prev by Date: substitute of QLThumbnailImageCreate() for 10.4 Tiger compatability
  • Next by Date: getting NSTableView -selectedColumn or -selectedCell
  • Previous by thread: Re: substitute of QLThumbnailImageCreate() for 10.4 Tiger compatability
  • Next by thread: Re: Dock menu item action isn't performed in modal state
  • Index(es):
    • Date
    • Thread