How to get NSTreeController's added object or child
How to get NSTreeController's added object or child
- Subject: How to get NSTreeController's added object or child
- From: Robert Fischer <email@hidden>
- Date: Sat, 6 May 2006 18:51:13 +0200
Is there a reliable method to get the newly created objects (with
add: or addChild:) from a NSTreeController?
I am managing a NSBrowser by a cocoa-binded NSTreeController.
My challenge is to get an added object and set some initial value,
depending on the previous selection.
I've already tried everything which came to my mind:
- observed selection to manipulate the new selected object
---> this seems to be delayed
- subclassing NSTreeController with newObject
---> works great with add: but is never called with addChild: !?!?
- subclassing NSTreeController with prepareContent
---> got never called this
- played around with "automaticallyPrepareContent"
Why, oh why, is there no delegate method
"treeController:addedObject:". This question came up in November
already.
BTW: CoreData is no option for me this time.
Thanks a lot,
Robert
--
--- - .-. -- --
--- / \ ---- tin:b Software
.-. / \ --- .-. __o .-. (i)
/ \ / \ / \ _`\<,_ / \ Robert Fischer
/ \ / \ / \ (*)/ (*) / `---------------
/ `---' `-' `-----------'
_______________________________________________
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