• 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: Problem overriding newObject in NSTreeController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem overriding newObject in NSTreeController


  • Subject: Re: Problem overriding newObject in NSTreeController
  • From: mmalcolm crawford <email@hidden>
  • Date: Wed, 22 Jun 2005 15:58:44 -0700


On Jun 22, 2005, at 3:44 PM, Michael McCracken wrote:

No, I suppose that should work - I was concerned that there was a
reason addChild didn't use the same creation mechanism as add:, and
that I'd be breaking something important by not  doing it the same
way. I'm also just curious why it does things differently for the two
cases.


There are different code paths depending on whether or not the content uses Core Data. If you're not using Core Data, then newObject is called in both cases. If you are using Core Data, then the controller tries to create a new object of the appropriate entity, depending on the relationship in the current selection.


mmalc

_______________________________________________
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: Problem overriding newObject in NSTreeController
      • From: mmalcolm crawford <email@hidden>
References: 
 >Problem overriding newObject in NSTreeController (From: Michael McCracken <email@hidden>)
 >Re: Problem overriding newObject in NSTreeController (From: mmalcolm crawford <email@hidden>)
 >Re: Problem overriding newObject in NSTreeController (From: Michael McCracken <email@hidden>)

  • Prev by Date: Changing drag-on selection highlight in NSTableView/NSOutlineView
  • Next by Date: Re: Correct way to force kill a thread.
  • Previous by thread: Re: Problem overriding newObject in NSTreeController
  • Next by thread: Re: Problem overriding newObject in NSTreeController
  • Index(es):
    • Date
    • Thread