Select Object in NSDictionaryController

2009-04-19 Thread Gerriet M. Denkmann
I have a table with two columns, labeled "Key" and "Value" bound to myDictionaryController.key and myDictionaryController.value. Now I want to select a row programmatically (e.g. [ myDictionaryController selectRowWIthKey: @"someKey" ]; ). But such a method I cannot find. And trying to use t

Re: Select Object in NSDictionaryController

2009-04-20 Thread Keary Suska
On Apr 19, 2009, at 1:29 AM, Gerriet M. Denkmann wrote: I have a table with two columns, labeled "Key" and "Value" bound to myDictionaryController.key and myDictionaryController.value. Now I want to select a row programmatically (e.g. [ myDictionaryController selectRowWIthKey: @"someKey" ]

Re: Select Object in NSDictionaryController

2009-04-20 Thread Gerriet M. Denkmann
On 20 Apr 2009, at 23:05, Keary Suska wrote: On Apr 19, 2009, at 1:29 AM, Gerriet M. Denkmann wrote: I have a table with two columns, labeled "Key" and "Value" bound to myDictionaryController.key and myDictionaryController.value. Now I want to select a row programmatically (e.g. [ myDic

Re: Select Object in NSDictionaryController

2009-04-20 Thread Keary Suska
On Apr 20, 2009, at 11:12 AM, Gerriet M. Denkmann wrote: NSArray *defs = ...some array... (which is bound to content of definitionsArrayController) NSUInteger defIndex = 0; for( NSDictionary *aDef in defs ) { for( NSString *defKey in aDef ) { NSString *value = [