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

  • Prev by Date: How to get NSTreeController's added object or child
  • Next by Date: Re: How to get NSTreeController's added object or child
  • Previous by thread: How to get NSTreeController's added object or child
  • Next by thread: Re: How to get NSTreeController's added object or child
  • Index(es):
    • Date
    • Thread