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