Re: Select Object in NSDictionaryController
Re: Select Object in NSDictionaryController
- Subject: Re: Select Object in NSDictionaryController
- From: Keary Suska <email@hidden>
- Date: Mon, 20 Apr 2009 10:05:43 -0600
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" ]; ).
But such a method I cannot find.
There is no such facility, unfortunately. It would be nice. Why not
file an enhancement request?
And trying to use the inherited "selectObjects:" does not work
(nothing happens, not even an error message).
Well, -selectObjects: can't be used to change a controller's
selection, so no wonder you aren't getting anywhere.
So: how can I select a row in my table?
Normally, -setSelectedObjects:, -setSelectionIndex:, or -
setSelectionIndexes:. If they don't work, and you want help with that,
then be specific about what precisely you tried (i.e. show code!). It
also helps to mention what you expect to happen, and what is actually
happening differently than your expectation.
HTH,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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