Re: NSArrayController subclass
Re: NSArrayController subclass
- Subject: Re: NSArrayController subclass
- From: Scott Stevenson <email@hidden>
- Date: Mon, 20 Sep 2004 23:13:37 -0700
On Sep 20, 2004, at 10:35 PM, Bertrand Landry Hetu wrote:
I'm trying to do a subclass of NSArrayController that would add
accessors similar to canAdd, canRemove. And I'm running in the
following issue: I'm not getting changes as the selection changes.
I added [self setKeys: [NSArray arrayWithObject: @"selectionIndexes"
triggerChangeNotificationsForDependentKey: @"canDoSomething"] to my
+(void)initialize and I expected it to work but no.
I haven't tried this myself (maybe somebody else has), but can't see
offhand why it wouldn't work.
How did you use "canDoSomething"? Did you bind something to it or
register for notifications?
Are you sure you selected the subclass in IB?
In other words, what specifically isn't working? Can you post sample
code?
- Scott
_______________________________________________
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