• 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: KVO on objects in NSArrayController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: KVO on objects in NSArrayController


  • Subject: Re: KVO on objects in NSArrayController
  • From: Jerry Krinock <email@hidden>
  • Date: Fri, 02 Sep 2011 23:34:24 -0700

On 2011 Sep 02, at 22:22, Trygve Inda wrote:

>> Briefly, you can configure the checkbox cell (either in IB or
>> programmatically) to have an action…

> I think this sounds like a much better option than trying to use KVO.

Indeed it is, *if* you literally want the notification, as you said in your original post, "whenever the user toggles a … checkbox".

However, if, as is more commonly the case, you actually need a notification whenever the 'marked' attribute in the data model changes, and if your application provides any other means by which that attribute could be changed, such as Undo, scriptability, business logic, or some other view of that attribute, which may be added in the future, then the shortcut of wiring to the control's action, although convenient, is going to be be missing these changes.

_______________________________________________

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: KVO on objects in NSArrayController
      • From: Quincey Morris <email@hidden>
    • Re: KVO on objects in NSArrayController
      • From: Trygve Inda <email@hidden>
References: 
 >Re: KVO on objects in NSArrayController (From: Trygve Inda <email@hidden>)

  • Prev by Date: Re: Custom Cell Bindings
  • Next by Date: Re: KVO on objects in NSArrayController
  • Previous by thread: Re: KVO on objects in NSArrayController
  • Next by thread: Re: KVO on objects in NSArrayController
  • Index(es):
    • Date
    • Thread