Re: Table views with different NSArrayControllers sharing the same data object...

2008-02-28 Thread Quincey Morris
On Feb 28, 2008, at 12:19, Keith Blount wrote: I have a feeling I'm approaching this all wrong, given that now I'm trying to bind my DataList object's -backgroundColor to the view's backgroundColor so that changes to the background colour in one view will automatically update in the other,

Re: Table views with different NSArrayControllers sharing the same data object...

2008-02-28 Thread Keith Blount
Many thanks for your replies, Adam and Quincey, much appreciated. By placing the methods in my model object rather than in my view object (I was kind of using the view as both view and controller), I now have both tables updating with objects getting inserted and edited. Great - thank you! I'm

Re: Table views with different NSArrayControllers sharing the same data object...

2008-02-28 Thread Quincey Morris
On Feb 28, 2008, at 02:46, Keith Blount wrote: Many thanks for your reply. I have a model object and a view object - DataList and DataListView. DataList has a -content array. The DataListView has an array controller whose contentArray is bound to the DataList's content array. Given that it

Re: Table views with different NSArrayControllers sharing the same data object...

2008-02-28 Thread Adam P Jenkins
On Feb 28, 2008, at 5:46 AM, Keith Blount wrote: Many thanks for your reply. I have a model object and a view object - DataList and DataListView. DataList has a -content array. The DataListView has an array controller whose contentArray is bound to the DataList's content array. Given that i

Re: Table views with different NSArrayControllers sharing the same data object...

2008-02-28 Thread Keith Blount
y app with the same table list open in both panes. Thanks again and all the best, Keith - Original Message From: Adam P Jenkins <[EMAIL PROTECTED]> To: Keith Blount <[EMAIL PROTECTED]> Cc: cocoa-dev@lists.apple.com Sent: Thursday, February 28, 2008 2:27:06 AM Subject: Re:

Re: Table views with different NSArrayControllers sharing the same data object...

2008-02-27 Thread Adam P Jenkins
If the content array is itself a property of another object, and the object containing the array property has indexed accessors for the array property, then observers of the array property will be notified of objects being added, removed or replaced in the array in addition to the whole arr

Table views with different NSArrayControllers sharing the same data object...

2008-02-27 Thread Keith Blount
Hi, I'm in the process of putting together a small list view based on an NSTableView. It's pretty simple - just a table of data using an NSArrayController, with a data object that provides the array. However, in my app it is possible that the view may appear in a split view with a copy of i