Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bindings: changing model changes some views but not others (NSTableColumn)



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.