Re: Access NSDictionary-Keys in Repetition
Re: Access NSDictionary-Keys in Repetition
- Subject: Re: Access NSDictionary-Keys in Repetition
- From: David LeBer <email@hidden>
- Date: Tue, 10 Aug 2004 10:44:49 -0400
On 10-Aug-04, at 10:16 AM, Ute Hoffmann wrote:
Hallo,
this is probably a very basic question, but nevertheless I'm stuck....
I have a number of NSDictionaries, all with identical keys, all
inserted in a NSMutableArray.
How can I access those values in a repetition? The Array could be
bound to the repetition list key, but what should I bind to the
Repetition item key to get access to the values? If I bind it to a
variable of type object it will know nothing about the keys contained.
I could write a class with the keys in, but is there no way to do it
with less code?
If your NSArray is full of NSDictionaries, create and ivar
dictEnumerator of type NSDictionary and use that for the item binding
on the repetition.
I'm assuming you know what the keys in your NSDictionaries are before
hand, so you just bind to "dictEnumerator.key1",
"dictEnumerator.key2"... etc in WOBuilder
;david
--
David LeBer
Codebase Software Systems
site: http://www.codebase.ca
blog: http://david.codebase.ca
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.