Re: Bindings Concept Question

2008-06-21 Thread Scott Anguish
and this is the first FAQ in the Cocoa Bindings Programming Guide documentation On Jun 21, 2008, at 10:12 PM, Chris Hanson wrote: [arrayOfData addObject:newData]; That right there is your problem. You are modifying the array itself, not the property, so it is not posting KVO notificat

Re: Bindings Concept Question

2008-06-21 Thread Chris Hanson
On Jun 21, 2008, at 10:49 AM, Alex Wait wrote: I have tried to, in my init method, to do this id proxy = [controller mutableArrayValueForKey:@"arrayOfData"]; Your init method of what class? Does "controller" have an "arrayOfData" property, or does the object you're making that call from?

Re: Bindings Concept Question

2008-06-21 Thread Ken Thomases
On Jun 21, 2008, at 12:49 PM, Alex Wait wrote: I have tried to, in my init method, to do this id proxy = [controller mutableArrayValueForKey:@"arrayOfData"]; I have also tried using the values "firstName" and "lastName" which are the properties of my Data class. controller is a pointer to m

Re: Bindings Concept Question

2008-06-21 Thread Alex Wait
Ok. Pretty deep topic and I'm working to wrap my head around it. I have taken the liberty to paste my addData method that is called when the button is pressed (it's at the end of the message). I have tried to, in my init method, to do this id proxy = [controller mutableArrayValueForKey:@"arrayOf

Re: Bindings Concept Question

2008-06-21 Thread mmalc Crawford
On Jun 20, 2008, at 10:16 PM, Alex Wait wrote: When the app starts, I see the data as expected. However, when I call my add function, which gets the strings from the textFields and makes the new "Data" object and adds it to the array, I do not see it in the table.

Re: Bindings Concept Question

2008-06-20 Thread Ken Thomases
On Jun 21, 2008, at 12:16 AM, Alex Wait wrote: When the app starts, I see the data as expected. However, when I call my add function, which gets the strings from the textFields and makes the new "Data" object and adds it to the array, I do not see it in the table. Without seeing your add m

Bindings Concept Question

2008-06-20 Thread Alex Wait
I know this is probably a really basic question about binding but it's sure tripping me up right now. I am making my way through "Cocoa Programming for Mac OS X" by Aaron Hillegrass. It's an excellent book btw. However the first time he has discusses binding is in the context of a NSDocument arch