Strange sdef behaviour was AppleScript and plug-ins
Strange sdef behaviour was AppleScript and plug-ins
- Subject: Strange sdef behaviour was AppleScript and plug-ins
- From: Stephen McIntosh <email@hidden>
- Date: Thu, 7 Jul 2005 17:56:53 +1000
I had a Xcode 1.x project that complied a Cocoa document based
application with a simple dictionary defined using sdef and complied
using the sdp tool as a run script in Xcode.
Convert this project into Xcode 2.1 the doco told me that I no longer
need to use sdp tool.
Problem 1. Script Editor no longer displays the dictionary I have
defined in the sdef file
If I insert the sdp shell
I only get the Suite name displayed in Script Editor but with the
expand arrow to view dictionary definitions.
The other Suites like Standard Suite, Text, Application have the
expand arrows in Script Editor to display the Suites classes,
parameters, etc.
I realise I am missing a step, but I can't find out anything from the
doco.
Any help would be great
Thanks in advance
Stephen
On 01/07/2005, at 2:59 AM, John Calsbeek wrote:
Is it possible for a plug-in to add new script suites to the main
application? I'm thinking about putting most of my application's
functionality in the plug-ins, but not if it means forfeiting
AppleScript. Of course, this could be a complete non-issue... I
haven't worked enough with Cocoa & AppleScript to be sure. Somehow
I'm thinking that this is possible, and that the reason Script
Editor launches an application before it opens its script
directory is to give it a chance to load its plug-ins... is that
totally off-base?
For the record, this appears to be possible through the method -
[NSScriptSuiteRegistry loadSuitesFromBundle:].
<file:///Developer/ADC Reference Library/documentation/Cocoa/
Reference/Foundation/ObjC_classic/Classes/
NSScriptSuiteRegistry.html#//apple_ref/doc/uid/20000040-BGBCGEHD>
-John Calsbeek
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40ozemail.com.au
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden