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

Problem overriding newObject in NSTreeController


  • Subject: Problem overriding newObject in NSTreeController
  • From: Michael McCracken <email@hidden>
  • Date: Wed, 22 Jun 2005 14:07:04 -0700

This came up at the end of another thread yesterday, and I still can't
figure out how to get the behavior I want.

In short, I need newObject to do something custom based on the current
selection.

The problem is that newObject is apparently only called from
NSTreeController -add:, and not from -addChild.

I overrode NSTreeController, and set up one button with -add: as an
action and one with -addChild:, and only invoking -add: uses my
version of newObject. -addChild successfully creates a new object, but
doesn't use my method.

Is there another method that NSTreeController is using for addChild
that I can override?

Thanks,
-mike

--
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

  • Follow-Ups:
    • WebView Bindings
      • From: Sarat Kongara <email@hidden>
    • Re: Problem overriding newObject in NSTreeController
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: Re: NSTreeController - please help, can't see the forest for the tree controller
  • Next by Date: Re: CoreData performance issues
  • Previous by thread: Limiting NSFetchRequest to Specific Relationship?
  • Next by thread: Re: Problem overriding newObject in NSTreeController
  • Index(es):
    • Date
    • Thread