| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
I delete a row in a table by first selecting it and then clicking a delete-button, and then I disable the delete-button.
The problem is now that the table view automatically highlights the next row in the table.
How can I remove this selection?
The following code is by best guess (!), but it doesn't work:
delete SelectedServerRow
set enabled of button "DeleteRow" of window "Prefs" to false
set rowIdx to selected row of table view "ServerTable" of scroll view "ServerTable" of window "Prefs"
log {"313 rowIdx", rowIdx}
set selected row of table view "ServerTable" of scroll view "ServerTable" of window "Prefs" to 0
update table view "ServerTable" of scroll view "ServerTable" of window "Prefs"
Another thing is that using the arrow keys up/down changes the selection of the rows, however, no clicked-event are produced!
Any hints?
/Heinrich
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-studio mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-studio/email@hidden
This email sent to email@hidden
_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-studio mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/applescript-studio/email@hidden This email sent to email@hidden
| References: | |
| >Remove of selection in table view (From: Heinrich Bjerregaard <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.