• 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 - Items only displays when user scrolls in outline view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOutlineView - Items only displays when user scrolls in outline view


  • Subject: Re: NSOutlineView - Items only displays when user scrolls in outline view
  • From: Graham Cox <email@hidden>
  • Date: Fri, 02 Sep 2011 22:59:49 +1000

On 02/09/2011, at 10:48 PM, Gilles Celli wrote:

> Yes forgot to say that I've a data source for the outline view….
>
> My OvItem.h class looks like this:


Yes, but how and when does that structure get established? That's what matters here - obviously the data structure needs to be ready when the outline view is first set up, or else the outline view needs to be told to reload once the data has come into being.

> @property (retain, nonatomic, readwrite) NSMutableArray *children;
> @property (nonatomic, assign) BOOL isParent;


Incidentally, why do you make such a strange distinction between parent and leaf nodes even though they are implemented by the same class? A parent could be defined as a node with children (as it is in real life), or if they are truly very different, make them different classes. Usually that sort of thing is better design than trying to give one thing two different mutually-exclusive identities. Not that that has any bearing on your problem….


--Graham




_______________________________________________

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: 
 >NSOutlineView - Items only displays when user scrolls in outline view (From: Gilles Celli <email@hidden>)
 >Re: NSOutlineView - Items only displays when user scrolls in outline view (From: Michael Babin <email@hidden>)
 >Re: NSOutlineView - Items only displays when user scrolls in outline view (From: Gilles Celli <email@hidden>)

  • Prev by Date: Re: NSOutlineView - Items only displays when user scrolls in outline view
  • Next by Date: Re: Core Data Xcode 4 question
  • Previous by thread: Re: NSOutlineView - Items only displays when user scrolls in outline view
  • Next by thread: Re: NSOutlineView - Items only displays when user scrolls in outline view
  • Index(es):
    • Date
    • Thread