Re: Problem overriding newObject in NSTreeController
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