Programmatic control of NSTableView selection?
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