• 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
NSTableView column bindings and "deep" key paths
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableView column bindings and "deep" key paths


  • Subject: NSTableView column bindings and "deep" key paths
  • From: Gerd Knops <email@hidden>
  • Date: Thu, 14 Jan 2010 10:47:49 -0600

I have a typical NSTableView setup where the column content is provided by an NSArrayController.

Now say a column is bound to arrayController.arrangedObjects key path a.b.c.d.

In this scenario if "b" changes (even in a KVO-complient way), it will still result in an NSInternalInconsistencyException 'Cannot remove an observer xxx for the key path "c.d" from <old instance of "b">, most likely because the value for the key "c" has changed without an appropriate KVO notification being sent.'

I understand why this is happening (nothing is observing changes of "b", so the actual observer is left "dangling").

The question is how can I change my design to avoid this situation?


Thanks

Gerd

_______________________________________________

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: NSTableView column bindings and "deep" key paths
      • From: Keary Suska <email@hidden>
    • Re: NSTableView column bindings and "deep" key paths
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: iCal-style NSTextFields
  • Next by Date: Re: Snapshotting hidden UIViews
  • Previous by thread: Re: iPhone: UITableView with cells of varying heights
  • Next by thread: Re: NSTableView column bindings and "deep" key paths
  • Index(es):
    • Date
    • Thread