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

KVO on objects in NSArrayController


  • Subject: KVO on objects in NSArrayController
  • From: Trygve Inda <email@hidden>
  • Date: Fri, 02 Sep 2011 19:01:56 -0700
  • Thread-topic: KVO on objects in NSArrayController

I have an array of objects (of class MyObject) managed by an
NSArrayController and displayed in an NSTable (via bindings).

One property of MyObject is a BOOL "marked".

I need to be notified whenever the user toggles a "marked" checkbox in my
NSTable.

What is the best way to do this? Do I need to add an observer to every
object in the array (there are about 8,000 of them).

How can I best achieve this so that I get passed the changed MyObject
(immediately after it changes).

Thanks,

Trygve



_______________________________________________

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: Jerry Krinock <email@hidden>
  • Prev by Date: Custom Cell Bindings
  • Next by Date: Re: Introductions to OOP?
  • Previous by thread: Re: Custom Cell Bindings
  • Next by thread: Re: KVO on objects in NSArrayController
  • Index(es):
    • Date
    • Thread