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: NSReceiverEvaluationScriptError



My only other suggestion is to make a copy of your project and reduce your NSApplication subclass to only contain an array of VWidget objects. Your current project may be too complex to debug. For example, make VWidget a subclass of NSObject instead of your storable object in the copied project, and have your NSApplication subclass do nothing but return an array of widgets.

I've had to resolve the <<class >> problem several times. I think it always had to do with providing the correct container and key to NSIndexSpecifier . You seem to be doing that, but making a less complex project might help you narrow down what's wrong.

Good luck,
Itrat.

I have done just that. I created a brand new project, and have narrowed the code down to the simplest case I could. The problems still persists.

When I call 'get widget 1', I get '<<class >> 1 of application "ScriptTest"' as the result.

Because of this, I can't do anything very complex in the script. I can call 'get name of widget 1', but If I store the widget in a variable and then try to get it's name it fails, because the specifier doesn't appear to be complete. Yet at the breakpoint in the objectSpecifier method of the Widget class, it does appear correct.

For those interested in a short challenge, I have placed a copy of the project and files on my iDisk. It's only 20k in size. The file is 'scripttest.tar.z' and is located at http://homepage.mac.com/brantv/FileSharing.html

And please, no RTFM's. I've read the documentation so many times now, that they have become useless to me. I can't help but interpret from memory as the characters fly past. So if the answer is an obvious one, that documentation would solve, please at least supply a page reference.

Please. Someone help me figure this out, before I pull out all my hair.
TIA,
Brant




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.