Hi *,
I’ve a hard problem with property “sorted data rows” of my data source connected to a table view: it doesn’t work every time… :mad:
Here is my code:
set theDataSource to data source table view "x" of scroll view "x" of window "main"
set sortedDataRows to (sorted data rows of theDataSource) -- <-- this row doesn't every times
set numSortedRows to (count of sortedDataRows)
P.S. Of course theDataSource’s “sorted” property is set to true and “sort column” set to one of his columns.
At run-time the error message of dialog box says: “AppleScript error: the variable sortedDataRows is not defined (-2753)”
In “build and debug” mode with a breakpoint on the signed row of my code that code row doesnt’ work every time: in “locals” sometime I see the correct “sortedDataRows” list but most of times i see nothing like if the variable did not come set.
Same problem with XCode 2.0 and 2.1
Please, help me
Thanks,
sixware.
Model: Mac-mini
AppleScript: 1.4
Browser: Firefox 1.0.4
Operating System: Mac OS X (10.4)