Binding values from an array in IB
Binding values from an array in IB
- Subject: Binding values from an array in IB
- From: Christoffer Lerno <email@hidden>
- Date: Sat, 29 May 2004 09:46:24 +0800
Hi,
I have an NSObjectController based on a NSMutableDictionary. Anyway,
binding values to the interface is straightforward for single values of
course. However, one of my values is an NSArray and I want to bind each
element to a certain NSTextView.
I get the array like this:
NSArray theArray=[objectControllerDictionary objectForKey:@"goods"];
And I want to extract it's values:
NSNumber theOreAmount=[[objectControllerDictionary
objectForKey:@"goods"] objectAtIndex:2];
and bind theOreAmount to the value of a NSTextView
Is it possible to create some path,
selection.goods.somethingtakingindex2 to get to this value or do I have
to go by-way of value transformers?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.