• 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: NSTreeController and Core Data: creating abstract entities?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSTreeController and Core Data: creating abstract entities? (From: Michael McCracken <email@hidden>)
 >Re: NSTreeController and Core Data: creating abstract entities? (From: mmalcolm crawford <email@hidden>)

  • Prev by Date: Re: CoreData performance issues
  • Next by Date: Re: CoreData performance issues
  • Previous by thread: Re: NSTreeController and Core Data: creating abstract entities?
  • Next by thread: Core Data: Changing Transient Keys Dirties Database?
  • Index(es):
    • Date
    • Thread