How subclass NSTreeController's -(void)insertChild:?
How subclass NSTreeController's -(void)insertChild:?
- Subject: How subclass NSTreeController's -(void)insertChild:?
- From: Thilo Ettelt <email@hidden>
- Date: Thu, 18 May 2006 16:23:30 +0200
Hello list,
I want to add a child to my NSTreeController. The child needs to have
an object passed through its initializer (i.e. -initWithObject:). So
I thought I would subclass -(void)insertObject and manually put the
object in the array to which the controller is bound. This however
gives me a strange message:
unexpected state: trying to insert object <Category: 0x3c1770>
failed. Destination node == nil or destination node did not retain
the object
How can I call my inizializer and add a child anyway now?
Thx in advance,
Thilo
_______________________________________________
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