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: Robert Fischer <email@hidden>
- Date: Sat, 6 May 2006 19:14:09 +0200
On 06.05.2006, at 19:01, Ondra Cada wrote:
You sure? Docs explicitly say "If the receiver is in object mode
*newObject is called* and the returned object is added as a child".
Yes, I read that, too. But I double-checked. newObject is called for
add, but not for addChild.
Truth is, NSTreeController is pretty buggy... try to break on your
model object's -init to see how it actually gets created.
Buggy, hmm. That's my feeling as well. I hope to get all this
NSBrowser mess, but now I am hanging around in NSTreeController mess.
I have had some success with delayed looking for current selection.
However, sometimes multiple selections appear, although this is
explicitly switched off in IB.
.. try to break on your model object's -init to see how it actually
gets created.
I am using a NSMutableDictionary, but I am considering to make my own
class with KVO compliance soon.
Thx, 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