Re: NSTreeController and Core Data: creating abstract entities?
Re: NSTreeController and Core Data: creating abstract entities?
- Subject: Re: NSTreeController and Core Data: creating abstract entities?
- From: Michael McCracken <email@hidden>
- Date: Tue, 21 Jun 2005 22:45:27 -0700
OK, that seems like a good point to intervene, but it seems that
newObject is only called from NSTreeController -add:, and not from
-addChild.
I overrode NSTreeController, and set up a button with -add: as an
action and one with -addChild:, and only invoking -add: uses my
version of newObject. Any idea what's going on here? I only want to
use addChild.
Thanks,
-mike
On 6/21/05, mmalcolm crawford <email@hidden> wrote:
>
> On Jun 21, 2005, at 8:56 PM, Michael McCracken wrote:
>
> > Also, what should I do to get it to do what I want - that is, to
> > create a PubGroup if the selection was a PubGroup, and a PersonGroup
> > if the selection is a PersonGroup - will I need to subclass
> > NSTreeController, or should I just use it for display and handle
> > adding and removing through my own code?
> >
>
> Subclass and override newObject -- create an instance of the same
> entity as the current selection.
>
> mmalc
>
--
Michael McCracken
_______________________________________________
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