| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
I recently posted a help request on this topic and got excellent advice from ![]() email@hidden:
The example is excellent, although I'm guessing it contains a type, as follows:
I'm guessing the object "IT" is actually object "INT". Reasonable guess, I'd say. I adapted the suggestion to my project as below: on SearchMe(theitem, thetable) log theitem & " this is the search item in searchme" & return & return set MyTableView to thetable if MyTableView = "main" then set thecellvalue to 2 set theDataSource to data source of table view 1 of scroll view 1 of window "main" log "Schedule is the window that was called" & return & return else if MyTableView = "chooseplaylist" then set thecellvalue to 1 set theDataSource to data source of table view 1 of scroll view 1 of window "chooseplaylist" end if end if set searchcelldata to zap_the_crap("data cell " & thecellvalue & " of every data row of table view 1 of scroll view 1 of window " & MyTableView) set columnContents to get contents of data cell thecellvalue of every data row of data source of table view 1 of scroll view 1 of window MyTableView --as list if columnContents contains theitem then set theIndex to call method "indexOfObject:" of object columnContents with parameter theitem -- zero-based log theIndex & " here's theindex!" & return & return call method "scrollRowToVisible:" of object int with parameter theIndex -- zero-based log int & " this is INT" & return & return set selected row to (theIndex + 1) end if end SearchMe This works very nicely, for the most part. The logs show the correct data being passed along the routine, etc.. The only problem is that actually running this returns this error: "The variable int is not defined. (-2753)" Now, my objective-c is not all it should be. I'm working on it, honestly, but it's not all there yet. Anyone want to offer a suggestion on how to define int? This is one of two remaining problems to solve on a project that's been dragging on for almost a year now. Once this is solved, I can ship and pay my rent. So, I would be Oh, so greatful to solve this in the next day or so. Sushi on me if you live in the tri-state as soon as a sell a few of these. TIA! Joshua |
_______________________________________________ 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
| 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.