Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Some Table View Question



Andreas

This works for me:

call method "selectRow:byExtendingSelection:" of (table view "calculations" of scroll view "calculations" of split view "calculations" of theDocument) with parameters {(item a of selectedRows) - 1, true}

Note the first parameter is the index, which is zero based for cocoa.

This might also be useful if the selected row is outside the view:

call method "scrollRowToVisible:" of (table view "calculations" of scroll view "calculations" of split view "calculations" of theDocument) with parameter calculationIndex - 1

MarkB


On 2004 Oct 27, at 11:34, Kiel wrote:

Hi,

I think my question has been discussed before, but I can't find an answer.
Is there a possibility to programmatically select a row in a table view after it has been found in the data source of the table view.
The thing I want to do is to find a data row with "whose content of data cell x of it = mySearchItem" and then automatically scroll to this row and select it in the table view.

Any help is appreciated.

Regards
Andreas


Andreas Kiel

Spherico
Nelkenstr. 25
D-76185 Karlsruhe
Tel.: +49 (0)721 183 9753
eFax: +1 650 897 8094
eMail: 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
 _______________________________________________
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: 
 >Some Table View Question (From: Kiel <email@hidden>)



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.