• 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
Newbie Bindings Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Newbie Bindings Question


  • Subject: Newbie Bindings Question
  • From: Michael Bianco <email@hidden>
  • Date: Tue, 17 May 2005 14:29:45 -0400

Hey All,
Newbie Cocoa Programmer here with a simple (hopefully!) question.
I have a NSMutableArray in a controller class that is filled with
instances of a custom class. I made a NSArrayController whose content
array is bound to the NSMutableArray in my controller class. I have a
table view whose column is bound to the "state" key of
NSArrayController arrangedObjects. The table displays the data
correctly, but when i change the state key of a object in
NSMutableArray the table does not update to represent the change made.
If i click on the row in the table that represents the object that had
a change it will refresh its data and represent correctly the "state"
key of the object its representing. How would i get it to update its
data when the "state" key is changed? I would of assumed the table
column would register its self as a observer of the "state" key of
each of the objects in arrangedObjects, but as far as i can see it
doesn't. I know i could just send the table a reloadData message but
that would be synching the view with the model which is what cocoa
bindings is supposed to get rid of...
Thanks!
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Newbie Bindings Question
      • From: SA Dev <email@hidden>
  • Prev by Date: Re: Should I observe every object in my view, or just the visible ones?
  • Next by Date: Re: Windows above the menu bar?
  • Previous by thread: Re: newbie bindings question
  • Next by thread: Re: Newbie Bindings Question
  • Index(es):
    • Date
    • Thread