Re: Access to value in dictionary from Interface Builder?
Re: Access to value in dictionary from Interface Builder?
- Subject: Re: Access to value in dictionary from Interface Builder?
- From: mmalc crawford <email@hidden>
- Date: Tue, 6 Mar 2007 11:02:14 -0800
On Mar 6, 2007, at 10:52 AM, Arthur C. wrote:
I have created a table view to show the values in the dictionary.
Binding to the dictionary keys directly does not seem to work, so I
use an array controller for this:
[...]
Now the array controller 'array' is bound to 'diagnostics' (which is
the contentArray), and to the table columns. One column is bound to
'arrangedObjects.key1' from the array controller, the other to
'arrangedObjects.value'.
The strange thing is that the program will crash when I omit the
'[array addObject: ...]' line, while it will work just fine if it is
included... Some other options such as filling the array controller
directly won't work either. I must be doing something wrong here,
but I can't see from the docs how to do this.
See <http://www.cocoabuilder.com/archive/message/cocoa/
2005/8/18/144578>...
mmalc
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden