• 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 bound to @unionOfArrays not updating
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSArrayController bound to @unionOfArrays not updating


  • Subject: Re: NSArrayController bound to @unionOfArrays not updating
  • From: mmalc crawford <email@hidden>
  • Date: Thu, 17 Apr 2008 10:31:47 -0700


On Apr 17, 2008, at 9:36 AM, Quincey Morris wrote:
Just so I understand, should I surround calls to any of the standard KVC method calls (in my case, insertObject:atIndex:) with [self willChangeValueForKey:@"affectedKey"]; and [self didChangeValueForKey:@"affectedKey"] if the standard KVC call will affect that derived property? This is probably described in the KVO documentation, I'll read up on it to make sure. Thanks for the quick fix.

Well, the answer is a qualified "yes".

No, the answer to the question as posed is "no" (subsequent "*But*"s in the answer notwithstanding).
If you want to emit KVO notifications for collection mutations, you should use the appropriate collection mutation call -- you don't advertise that the whole collection has changed.


*But* automatic dependencies do not work for properties of core data managed objects. :)

This is again at best misleading -- see <http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/Articles/cdFAQ.html#//apple_ref/doc/uid/TP40001802-SW3 > for a complete discussion.

mmalc

_______________________________________________

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 bound to @unionOfArrays not updating
      • From: Quincey Morris <email@hidden>
References: 
 >NSArrayController bound to @unionOfArrays not updating (From: "William Towe" <email@hidden>)
 >Re: NSArrayController bound to @unionOfArrays not updating (From: "William Towe" <email@hidden>)
 >Re: NSArrayController bound to @unionOfArrays not updating (From: Quincey Morris <email@hidden>)
 >Re: NSArrayController bound to @unionOfArrays not updating (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: -charactersIgnoringModifiers and the shift key
  • Next by Date: Re: Cannot Remove Observer Error
  • Previous by thread: Re: NSArrayController bound to @unionOfArrays not updating
  • Next by thread: Re: NSArrayController bound to @unionOfArrays not updating
  • Index(es):
    • Date
    • Thread