Re: Efficient hierarchical menu from path?
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