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: data source problem




On 2005, Mar 09, , at 10:45 AM, Jasper Van Proeyen wrote:

Hi,

I have a second nib in my ASS project with a window called "HighScores"
I use the "on will quit theObject" handler before the app quits, to store the defaults in my plist file.

My problem:
I want to save all the data from a table from the "HighScores" window to the plist, but I get a NSReceiverEvaluationScriptError when I try to get the data.
Here's my piece of code:
set creditsList to contents of every data cell of every data row of data source of table view "creditsScore" of scroll view "creditsScore" of window "HighScores"

This seems fine to me. Have a look at what you've attached the data source to, and how you have populated it. I assume that if it is populated, you have all the connections working. The error you are getting indicates that there is some problem finding an object you have specified. There is always a chance the error is generated with something else you are doing. Also it may be that the line above is fine, but isn't working because of the error.

My guess is that I should say somewhere in my code that window "HighScores" is in the second nib (not the MainMenu.nib), but I wouldn't have a clue how…
Any suggestions?

Accessing the data source doesn't depend on which nib the window is built from. It depends on how the data source is made--and attached to the object, 'creditScore' in your case here.

I'm afraid this isn't a solution for you, but I hope it helps you find the problem.

MarkB
 _______________________________________________
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: 
 >data source problem (From: Jasper Van Proeyen <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.