• 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: changing model changes some views but not others (NSTableColumn)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Bindings: changing model changes some views but not others (NSTableColumn)
      • From: Scott Stevenson <email@hidden>
  • Prev by Date: Re: NSTask memory leak
  • Next by Date: Re: Slightly OT: SIGKILL (force quit) and child process termination
  • Previous by thread: Re: Multithreading/Memory Management Problem
  • Next by thread: Re: Bindings: changing model changes some views but not others (NSTableColumn)
  • Index(es):
    • Date
    • Thread