• 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: (no subject)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (no subject)


  • Subject: Re: (no subject)
  • From: Uli Kusterer <email@hidden>
  • Date: Fri, 16 Mar 2007 22:54:58 +0100

Am 16.03.2007 um 22:13 schrieb Orr Philip:
Could someone like to explain please how NSOutlineView works, I've looked up the internet and ran through the examples that Apple give you, but for some reason I still don't quite understand how it works out what value is needed for the cell.

I do understand the NSTableView okay and many columns say that NSOutlineView is the same, sorry I don't think so.

Basically I'm looking to have a rootless column with any number of children spawning from my options.

Might help to see NSOutlineView as a collection of small NSTableViews. The "root" is NIL. The outline view will ask you how many sub-items another item should have, and then just like with an NSTableView, you can return an item for each column.


So, if you want a "rootless" view, just return a number bigger than 1 when asked for the number of subitems of item NIL.

 Anything else that isn't clear?

Cheers,
-- M. Uli Kusterer
http://www.zathras.de



_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


  • Follow-Ups:
    • Re: (no subject) - NSOutlineView
      • From: Orr Philip <email@hidden>
References: 
 >(no subject) (From: Orr Philip <email@hidden>)

  • Prev by Date: Re: RSS support in Cocoa
  • Next by Date: Re: capturing a double-click on a control
  • Previous by thread: (no subject)
  • Next by thread: Re: (no subject) - NSOutlineView
  • Index(es):
    • Date
    • Thread