• 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: NSArrayController subclass
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: NSArrayController subclass
      • From: Bertrand Landry Hetu <email@hidden>
References: 
 >NSArrayController subclass (From: Bertrand Landry Hetu <email@hidden>)

  • Prev by Date: NSArrayController subclass
  • Next by Date: Re: How do folks group things as per Address Book?
  • Previous by thread: NSArrayController subclass
  • Next by thread: Re: NSArrayController subclass
  • Index(es):
    • Date
    • Thread