Re: iTunes-like tree menu
Re: iTunes-like tree menu
- Subject: Re: iTunes-like tree menu
- From: "Nicholas Brawn" <email@hidden>
- Date: Wed, 15 Aug 2007 19:25:06 +1000
There's been some discussion on this subject at the IndieHIG wiki at:
http://indiehig.com/wiki/Source_Lists
This links to an NSTableView itunes-like source list at
http://cocoa-pirate.blogspot.com/2006/12/indiehig-contribution-source-list.html
I've tried to emulate something like the iTunes source list L&F, but had
difficulty using CoreData bindings. Probably because my typical approach was
to bind one entity to an NSTreeController.
In an iTunes-like source list, you probably want to have different entities
represented, with a parent/root objects acting as headings, and with the
different entities arrangedObjects as the children.
On the other hand, I have had some success binding an NSTreeController to an
NSMutableArray using KVO bindings.
With this approach you add the initial headings objects
(NSMutableDictionary) and add the children through either a fetch request or
accessing the arrangedObjects of another NSTree/Array controller.
HTH
Cheers,
Nick
_______________________________________________
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