• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to get NSTreeController's added object or child
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >How to get NSTreeController's added object or child (From: Robert Fischer <email@hidden>)
 >Re: How to get NSTreeController's added object or child (From: Ondra Cada <email@hidden>)

  • Prev by Date: Re: How to get NSTreeController's added object or child
  • Next by Date: Re: How to control the commit of text edit field with binding?
  • Previous by thread: Re: How to get NSTreeController's added object or child
  • Next by thread: Chicago - CAWUG May 9th
  • Index(es):
    • Date
    • Thread