• 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: Efficient hierarchical menu from path?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Efficient hierarchical menu from path?


  • Subject: Re: Efficient hierarchical menu from path?
  • From: Justin Hawkwood <email@hidden>
  • Date: Sat, 15 Dec 2007 17:27:26 -0800

THANK YOU THANK YOU THANK YOU!!!

That nailed it!

On Dec 13, 2007, at 10:59 PM, j o a r wrote:


On Dec 13, 2007, at 8:59 PM, Justin Hawkwood wrote:

Currently, I'm using NSFileManager to iterate through a items and folders to build a menu from a given path, but this has a large memory overhead, I'd assume due to the file icons. I have seen some apps that provide hierarchical menus, but use very little memory. Any suggestions as to how to do this? Is there a way to get the Finder to supply this menu?


While I haven't tried this myself it seems that you should be able to dynamically create only the parts of the menu that the user actually navigates to. You might be able to do that by leveraging the the "-menuNeedsUpdate:" NSMenu delegate method (and please see the discussion in the docs for that method for additional considerations).

j o a r



_______________________________________________

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


References: 
 >Efficient hierarchical menu from path? (From: Justin Hawkwood <email@hidden>)
 >Re: Efficient hierarchical menu from path? (From: j o a r <email@hidden>)

  • Prev by Date: Finding os version at compile time and os version at runtime?
  • Next by Date: Re: NSArrayController delete objects once removed
  • Previous by thread: Re: Efficient hierarchical menu from path?
  • Next by thread: December Developer Documentation Update Now Posted
  • Index(es):
    • Date
    • Thread