• 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: John Stiles <email@hidden>
  • Date: Fri, 14 Dec 2007 09:47:09 -0800

I've tried this and it does work pretty well.
I didn't look at actual memory usage but it never seemed to be a problem for me.


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
_______________________________________________

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: [Solved] Re: NSView -setBoundsRotation:
  • Next by Date: Re: printf
  • Previous by thread: Re: Efficient hierarchical menu from path?
  • Next by thread: Re: Efficient hierarchical menu from path?
  • Index(es):
    • Date
    • Thread