• 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
Re: Images In Dock Menu?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Images In Dock Menu?


  • Subject: Re: Images In Dock Menu?
  • From: Gregory Weston <email@hidden>
  • Date: Sat, 14 Feb 2009 01:12:39 -0500

Chunk 1978 wrote:

i have a NSMenu that i use as both a right-click menu and the dock
menu.  The images i use for some of the menu items will appear in the
right-click menu, but they do not show up in the dock menu.

i've connected the the File's Owner dockMenu to the NSMenu in IB so to
add the menu to the app's dock menu.  i've searched for an answer in
the archives, but it seems that this has been a "known issue" since
2003?

The short answer is that the dock doesn't actually display the menu you hand it. It's just a convenient device for specifying your own menu content and then conveying it to the other process. The down-side is that we lose some functionality. You've noticed the lack of images. Another loss is that building menus on the fly is impractical. It tries to resolve the whole structure up-front instead of as-needed (because, presumably, that *is* when it's needed) and if it takes too long it'll time out.
_______________________________________________


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


  • Prev by Date: Re: How to handle clicks on NSOutlineView
  • Next by Date: Re: iTableView and subclassing NSTableView
  • Previous by thread: Re: Images In Dock Menu?
  • Next by thread: NSTreeController - Remove Children
  • Index(es):
    • Date
    • Thread