• 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
Programmatic control of NSTableView selection?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Programmatic control of NSTableView selection?


  • Subject: Programmatic control of NSTableView selection?
  • From: "Brent Burton" <email@hidden>
  • Date: Fri, 21 Nov 2008 11:15:13 -0600

(Moderator, I never heard why the first attempt didn't get to the
list. Too verbose?)

All,
I have a question about programmatically controlling the currently
selected object displayed in a table view.

In short, the table displays lines of text to be spoken by the speech
synthesizer. As each line is spoken, I want it to be the selected line
in the table, and when the next line is spoken, the selection changes.
The lines of text are in an array controller.

Once the process starts, whichever object is currently selected is the
first spoken item. When speech finishes, the code attempts to select
the next one via array controller's canSelectNext and selectNext
methods. If the selection is updated to the next item, it waits until
tableViewSelectionDidChange: is invoked.

Is this the normal way of programmatically interacting with a
selection, or is there a better way?

thanks,
-Brent
_______________________________________________

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

  • Prev by Date: Re: NSIndexSet
  • Next by Date: Re: Difference between "Target" and "Executable" ?
  • Previous by thread: Re: NSTextView :Attributes of pasted text different from original Text
  • Next by thread: NSCollectionView woes
  • Index(es):
    • Date
    • Thread