Bindings - An array of Dictionaries
Bindings - An array of Dictionaries
- Subject: Bindings - An array of Dictionaries
- From: Steve Cronin <email@hidden>
- Date: Wed, 14 Sep 2005 01:46:09 -0500
Folks;
I've got an array of dictionaries showing in a tableview using the
old-school datasource methodology - works just fine!
(So I know the array is valid and populated!)
Now I am trying to crawl up 'Bindings Mountain'... I want to display
the same array in a different tableview using bindings instead of
datasourcing.
I drag an array controller (aCtnl) into the IB document window and
set the 'content' outlet to the appController (where all the
datasource stuff lives).
I also bind the content array of aCntl to the array inside
appController (aArray). aArray is an instance variable AND I have a
accessor method -(NSArray *)aArray which simply returns aArray. {My
thought on this accessor is this is how I make this object KVC
compliant? Is this necessary?}
I drag a new tableview onto my window and bind the columns to the
aCntl's arrangedObjects.
For the Model Key Path I have tried keyName and aArray.keyName but
neither works.
I've also tried using an ObjectController intermediary like it seems
recommended in: <<http://www.cocoadevcentral.com/articles/000080.php>>
I tried setting the IB Attribute for aCtnl to the array name (or not).
I've tried removing the content outlet to the aCntl, relying on just
the bindings specification
No matter what I do I never see anything in the tableview and for the
most part I do not get any compiler or runtime errors.
How do I debug this?
Where is how to do something like this documented? I've spent hours
trying different arrangements of settings - shooting in the dark...
I see lots of conceptual stuff on Apple's site but I can't seem to
find - how to use IB to do bindings
I thought the whole point was to write less code but all I can find
are documents showing how to write code to do bindings...
I appreciate any thoughts!
Steve
_______________________________________________
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