Re: AppleEvent question
Re: AppleEvent question
- Subject: Re: AppleEvent question
- From: Brian Webster <email@hidden>
- Date: Wed, 2 Oct 2002 10:15:21 -0500
On Wednesday, October 2, 2002, at 12:00 AM,
email@hidden wrote:
I'm working on a utility class to build object specifiers to be used
for direct communication with QuarkXPress, and I ran into a roadblock.
The version of Quark is old (3.32) and the AppleEvent dictionary was
written in the old AETE format. The problem I'm having is figuring how
to use the old style four-character event classes, keys and property
constants in the new Cocoa classes "NSScriptObjectSpecifier",
"NSIndexSpecifier", "NSNameSpecifier" etc...
The problem is that NSScriptObjectSpecifier is not meant to be used for
outgoing Apple Events, only incoming ones. When an event is received,
any object specifiers in the event can get translated into a series of
NSScriptObjectSpecifiers, but there is no way to translate that back
into an AEDesc object specifier. I'm afraid the only way to go about
this currently is through Carbon, with CreateObjSpecifier() and friends.
--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster
_______________________________________________
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.