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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to