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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to