• 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
Bindings and To-Many Relationship
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bindings and To-Many Relationship


  • Subject: Bindings and To-Many Relationship
  • From: Milen Dzhumerov <email@hidden>
  • Date: Fri, 13 Jun 2008 18:39:20 +0100

Hi all,

I've got a question regarding bindings and to-many relationships. I've got my own array controller which has a arrangedObjects property. It is KVO observable as in notifications are sent when objects are added / removed (and obviously if the actually content array changes). Now my question is regarding KVO and any paths which go through arrangedObjects - for example, if some object wants to receive notifications for arrangedObjects.name, how do I handle this?

Conceptually, whose responsibility is it when someone wants to observe arrangedObjects.name? Is it the array controller's or is it whoever is interested? I've seen the GraphicsBindings example where the sample code subscribes to receive notification for each object's "name" path rather than observing arrangedObjects.name. I'm a bit puzzled which route to take since it seems that NSArrayController allows observation of arrangedObjects.name.

Does anyone know how NSTableColumn handles this?

Thanks,
M
_______________________________________________

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: Bindings and To-Many Relationship
      • From: Quincey Morris <email@hidden>
  • Prev by Date: [NSOutlineView/NSTableView] Returning nil enables auto-edition?
  • Next by Date: Re: [NSOutlineView/NSTableView] Returning nil enables auto-edition?
  • Previous by thread: Re: [NSOutlineView/NSTableView] Returning nil enables auto-edition?
  • Next by thread: Re: Bindings and To-Many Relationship
  • Index(es):
    • Date
    • Thread