• 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 + KVO + Core Data Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSArrayController + KVO + Core Data Question


  • Subject: Re: NSArrayController + KVO + Core Data Question
  • From: Jerry Krinock <email@hidden>
  • Date: Sun, 22 Aug 2010 22:54:05 -0700

On 2010 Aug 22, at 15:55, Ajay Sabhaney wrote:

> it was *necessary*

[emphasis added]

> for me to receive a KVO notification when either a new item was added to the array controller, or removed from the array controller

I'd say that this assumption is the problem.  What you probably *really need* is a notification when relationships change in your *data model*.  I believe the conventional approach would be to *observe your data model* instead of array controller contents.  In other words, "go right to the source".

Bugs, such as the one reportedly in NSArrayController, often hang out in dark alleys where few people go.  For easier programming, stay on the main streets.

_______________________________________________

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 + KVO + Core Data Question
      • From: Ajay Sabhaney <email@hidden>
References: 
 >NSArrayController + KVO + Core Data Question (From: Ajay Sabhaney <email@hidden>)

  • Prev by Date: Re: Core Animation. issue with scaling
  • Next by Date: Draw String/text in circular path.
  • Previous by thread: NSArrayController + KVO + Core Data Question
  • Next by thread: Re: NSArrayController + KVO + Core Data Question
  • Index(es):
    • Date
    • Thread