• 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: error displaying @count via bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: error displaying @count via bindings


  • Subject: Re: error displaying @count via bindings
  • From: email@hidden
  • Date: Mon, 2 Apr 2007 12:00:28 -0700


How would this play out in code? Would I have an NSArrayController for each instance of my class? Or should I just put custom willChange/ didChange notices in each of my NSMutableArray accessors and setters in my class?


LA

Oop, I wasn't paying attention. I recall that the array and set operators
are not observable, at least not for an array. I think you have to "proxy"
through an NSArrayController, which I believe will eliminate the error.
Never had to do it myself, but that's what I have heard.


I don't think this is well documented, or obviously documented-- i.e. neither
the KVC, KVO, or Bindings docs mention this, that I recall.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: error displaying @count via bindings
      • From: Keary Suska <email@hidden>
  • Prev by Date: Re: optimizing background image drawing with -drawRect
  • Next by Date: Re: error displaying @count via bindings
  • Previous by thread: Re: error displaying @count via bindings
  • Next by thread: Re: error displaying @count via bindings
  • Index(es):
    • Date
    • Thread