• 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: iTunes-like tree menu
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: iTunes-like tree menu (From: Alex Reynolds <email@hidden>)
 >Re: iTunes-like tree menu (From: Thomas Engelmeier <email@hidden>)

  • Prev by Date: Re: NSConnection timeouts
  • Next by Date: Re: iTunes-like tree menu
  • Previous by thread: Re: iTunes-like tree menu
  • Next by thread: Dynamic Menu Bars
  • Index(es):
    • Date
    • Thread