Bindings: changing model changes some views but not others (NSTableColumn)
Bindings: changing model changes some views but not others (NSTableColumn)
- Subject: Bindings: changing model changes some views but not others (NSTableColumn)
- From: "Sean McBride" <email@hidden>
- Date: Wed, 29 Nov 2006 14:19:26 -0500
- Organization: Rogue Research
Hi all,
I have an NSTableColumn bound like so:
bind to: AppController (NSObject subclass instantiated in the nib)
controller key: n/a
model key path: polarisMaster.polaris
ControlsController.selection.toolsController.arrangedObjects.name
and an NSTextField bound like so:
bind to: AppController (NSObject subclass instantiated in the nib)
controller key: n/a
model key path: polarisMaster.polaris
ControlsController.selection.toolsController.selection.name
Most everything works fine, except... if I call the setName: method on
one of the model objects. Changing the model should update the views
via KVO/KVC, right? The NSTextField does indeed update. But the
tableview does not! (Unless I resize the window or click somewhere in
the table.)
What could I be doing wrong here? I'm stumped.
mmalc's ToDos example is similar and does not have this problem. One
difference is that I create my NSArrayControllers programatically
instead of having them in the NIB.
Thanks for any help!
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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