• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Select Object in NSDictionaryController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Select Object in NSDictionaryController
      • From: "Gerriet M. Denkmann" <email@hidden>
References: 
 >Select Object in NSDictionaryController (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: Re: Converting String Representations at Runtime
  • Next by Date: hud panel tiger
  • Previous by thread: Select Object in NSDictionaryController
  • Next by thread: Re: Select Object in NSDictionaryController
  • Index(es):
    • Date
    • Thread