Re: Applescript error - NSCannotCreateScriptCommandError
Re: Applescript error - NSCannotCreateScriptCommandError
- Subject: Re: Applescript error - NSCannotCreateScriptCommandError
- From: Steve Palmer <email@hidden>
- Date: Sat, 17 Jul 2004 09:00:41 -0700
I'm subclassing NSApplication and implementing the script accessors in
there. I hadn't thought of categorizing NSApplication but why would
that make a difference here? Most other examples of implementing
AppleScript support either subclass NSApplication. I have
NSPrincipalClass in Info.plist set to TestApp.
- Steve
On Jul 15, 2004, at 8:01pm, Nick Zitzmann wrote:
On Jul 15, 2004, at 8:38 PM, Steve Palmer wrote:
Resending:
In your scriptSuite you have an object called "TestApp". Are you
subclassing NSApplication?
Unless you've got a specific reason to subclass NSApplication, I'd
recommend you just categorize NSApplication if you want to add some
AppleScript accessors. Then change the "TestApp" class in your
scriptSuite and scriptTerminology files to "NSApplication" and try
that out.
Nick Zitzmann
<http://www.chronosnet.com/>
- Steve
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.