• 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 computed property not being updated
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSArrayController subclass computed property not being updated


  • Subject: Re: NSArrayController subclass computed property not being updated
  • From: Kyle Sluder <email@hidden>
  • Date: Tue, 28 Jul 2009 22:40:58 -0700

On Jul 28, 2009, at 10:09 PM, Alexander Heinz <email@hidden> wrote:

(This basically adds some application-specific checks to the canRemove: property, so that I can bind a "remove" button in Interface Builder.)

Question: why aren't you just overriding -canRemove?

However, the accessor for the property (i.e., "- (BOOL) canRemoveSelection") is never called, beyond the initial call when the object is created. As a result, the button bound to the property never changes state.

Have you actually bound anything to the controller's canRemoveSelection property?


--Kyle Sluder


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSArrayController subclass computed property not being updated
      • From: Alexander Heinz <email@hidden>
  • Prev by Date: Re: NSArrayController subclass computed property not being updated
  • Next by Date: Re: Identifying NSTextViews
  • Previous by thread: [SOLVED] NSArrayController subclass computed property not being updated
  • Next by thread: Re: NSArrayController subclass computed property not being updated
  • Index(es):
    • Date
    • Thread