• 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
NSArrayController "Auto Rearrange Content" causes "Cannot remove an observer for key path" error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSArrayController "Auto Rearrange Content" causes "Cannot remove an observer for key path" error


  • Subject: NSArrayController "Auto Rearrange Content" causes "Cannot remove an observer for key path" error
  • From: Tristan Celder <email@hidden>
  • Date: Thu, 25 Jun 2009 15:50:43 +0100

Hi,

I've been fighting an issue for some time now which seems to rear its head when I set Auto Rearrange Content to true on an NSArrayController. Whenever I do this it seems to throw a 'Can't remove an observer <x> for key path "x". It always occurs when I am trying to access a relationship of the entity I am managing within an array controller, yielding the following kind of error Cannot remove an observer <NSTableBinder 0x1660e130> for the key path "person.name" from <NSManagedObject 0x1b62b0>, most likely because the value for the key "person" has changed without an appropriate KVO notification being sent. Check the KVO-compliance of the NSManagedObject class.

Also, this only happens with a specific scenario: when I re-open a saved document with exactly one row of the entity being managed by the auto rearranged array controller.

Is there something I must do with CoreData to ensure KVO compliance when using auto rearrange content? I have a small project I've created to demonstrate this issue if anyone would care to take a look...

Any help, greatly appreciated...
_______________________________________________

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


  • Prev by Date: Badge color in Leopard
  • Next by Date: Re: Cocoa and email (SMTP/POP3) (thanks)
  • Previous by thread: Badge color in Leopard
  • Next by thread: Re: Cocoa and email (SMTP/POP3) (thanks)
  • Index(es):
    • Date
    • Thread