• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
applescript support specified by sdef
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Creating Cocoa Application Installer via Xcode 2.2?
  • Next by Date: Re: Link & Table Cursors in NSTextView
  • Previous by thread: Re: Creating Cocoa Application Installer via Xcode 2.2?
  • Next by thread: Help in Sketch
  • Index(es):
    • Date
    • Thread