• 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
More Newbie Trouble with Basic Bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

More Newbie Trouble with Basic Bindings


  • Subject: More Newbie Trouble with Basic Bindings
  • From: Kane Dijkman <email@hidden>
  • Date: Thu, 31 Mar 2005 12:43:16 -0800

Hey Folks,

After quite a bit of hair pulling and gnashing of teeth I have been able to get bindings to work so that the values are displayed properly in an NSTableView via an NSArrayController. However, I have not been able to get them to update when the array that the NSArrayController is bound to is changed programatically.

I have an object for each elements data. Every time I have to add to the NSTableView I add a new copy of the object to the array. But the results don't show up.

I tried adding an outlet to my controller class and connecting that to the NSTableView and passing it "reloadData". But that did not work.

I read mmalc's page's section on his webpage
Programmatic modifications to arrays not noticed by table view
but I think I am too new to understand exactly how to translate that into the code I need.


I tried searching google and the mail list, as i am sure I am not the first person to experience this, but had no luck in finding a solution.

So, my question is... if I have an array of objects that are bound to an NSArrayController which is used by an NSTableView and I update the array programatically what do I put in the code to force/bribe/cajole/prompt the NSTableView to update?

Thanks,
Kane

_______________________________________________
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: More Newbie Trouble with Basic Bindings
      • From: todd ransom <email@hidden>
References: 
 >Insetting a complex NSBezierPath shape? (From: Keith Blount <email@hidden>)
 >NSDate dateWithNaturalLanguageString goes BOOM! after being called 100, 000+ times (From: Kane Dijkman <email@hidden>)

  • Prev by Date: Re: Cocoa Style Question
  • Next by Date: Re: More Newbie Trouble with Basic Bindings
  • Previous by thread: Re: NSDate dateWithNaturalLanguageString goes BOOM! after being called 100, 000+ times
  • Next by thread: Re: More Newbie Trouble with Basic Bindings
  • Index(es):
    • Date
    • Thread