applescript support specified by sdef
applescript support specified by sdef
- Subject: applescript support specified by sdef
- From: "Keith Ray" <email@hidden>
- Date: Mon, 27 Feb 2006 14:33:55 -0800
I'm looking at a Cocoa app that has a '.sdef' file and notice that
even though the cocoa class specified for the "open" command is
"MyScriptCommand", that class isn't getting invoked for an open-file
apple event. Instead this method of the MyDocController class is being
invoked by undocumented methods of NSDocumentController and
NSApplication.
- (id) openDocumentWithContentsOfURL: (NSURL*) absoluteURL display:
(BOOL) displayDocument error: (NSError**) outError ;
Does Cocoa just ignore some or most of the stuff specified in the .sdef file?
(This is on 10.4.3, xcode 2.2)
selected sdef contents =
<command name="open" code="aevtodoc" description="Open a document.">
<cocoa class="MyScriptCommand"/>
<direct-parameter description="The file(s) to be opened.">
<type type='file' list="yes"/>
</direct-parameter>
<result description="a list of the opened document(s).">
<type type="document" list="yes"/>
</result>
</command>
--
C. Keith Ray
<http://homepage.mac.com/keithray/blog/index.html>
<http://homepage.mac.com/keithray/xpminifaq.html>
<http://homepage.mac.com/keithray/resume2.html>
_______________________________________________
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