• 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: NSOutlineview Datasource
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOutlineview Datasource


  • Subject: Re: NSOutlineview Datasource
  • From: j o a r <email@hidden>
  • Date: Fri, 4 Feb 2005 17:00:27 +0100


On 2005-02-04, at 16.55, Coleman Nitroy wrote:

So to make my life easier I would like to use more specific objects. For example: SomeClass->has an array of children of class type SomeOtherClass, and on and on. Before I rip out a large amount of code I was wondering is this possible to use in a NSOutlineview. Does SomeOtherClass need to be a subclass of SomeClass? What caveats will I run into?

The outline view doesn't care how you structure your data source, as long as you return values correctly via it's delegate and data source methods. I think it's quite common to do what you're thinking about - ie. to have different classes of objects for nodes and leaves / parents and children.


Also a side question. When deleting items you need to have its parent correct? Out of curiosity how does everyone maintain the parent side of the child/parent relationship?

Failed to parse question, bailing out...

j o a r

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSOutlineview Datasource
      • From: Coleman Nitroy <email@hidden>
References: 
 >NSOutlineview Datasource (From: Coleman Nitroy <email@hidden>)

  • Prev by Date: Re: help:socket programming!
  • Next by Date: Re: NSCalendarDate picker widget?
  • Previous by thread: NSOutlineview Datasource
  • Next by thread: Re: NSOutlineview Datasource
  • Index(es):
    • Date
    • Thread