Re: How to get NSTreeController's added object or child
Re: How to get NSTreeController's added object or child
- Subject: Re: How to get NSTreeController's added object or child
- From: Ondra Cada <email@hidden>
- Date: Sat, 6 May 2006 19:01:48 +0200
Robert,
On 6.5.2006, at 18:51, Robert Fischer wrote:
Is there a reliable method to get the newly created objects (with
add: or addChild:) from a NSTreeController?
...
- subclassing NSTreeController with newObject
---> works great with add: but is never called with addChild: !?!?
You sure? Docs explicitly say "If the receiver is in object mode
*newObject is called* and the returned object is added as a child".
Truth is, NSTreeController is pretty buggy... try to break on your
model object's -init to see how it actually gets created.
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
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