The notion of extending the sdef implementation element for other
technologies was discussed briefly in another thread and a bit more
off-list.
Here's one way to define the extension formally in an XML Schema for
sdefs that can handle both 'cocoa' elements as they are currently
used plus additional implementations.
The attributes for the example 'carbon' element are not carved in
stone -- the general idea being to allow a flexible symbol lookup for
Carbon Events and/or a search for an AppleEvent handler and to
provide a parameter list for 'get' and 'set' query events. In this
example, the 'parameter-types' would be key/value pairs ('----'
'utxt' e.g.).
Note that other languages such as java, ruby, etc. can use a similar
notion provided they are willing to do the xml grunt work to parse up
the parent chain to get whatever element/attribute relationships they
need.
Much appreciated if you have comments on the above or suggestions for
what other languages could use before I file an enhancement bug.
Philip Aker
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-implementors mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-implementors/email@hidden