AppleEvent question
AppleEvent question
- Subject: AppleEvent question
- From: Ken Tozier <email@hidden>
- Date: Tue, 1 Oct 2002 21:04:51 -0400
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...
For example, say I want to build an object specifier for page 1 of
document 1:
I can make the document spec no problem, but I'm stumped on how to make
the page spec
NSScriptObjectSpecifier *documentSpecifier,
*pageSpecifier;
documentSpecifier = [[NSIndexSpecifier allocWithZone:[self zone]]
initWithContainerClassDescription:nil
containerSpecifier:nil
key:@"namedDocuments"
index:1];
pageSpecifier = [[NSIndexSpecifier allocWithZone:[self zone]]
initWithContainerClassDescription:nil <- where
the heck am I supposed to get this?
containerSpecifier: documentSpecifier
key:@"no idea what to put here" <- and this?
index:1];
I know the four-char-code for a Quark page ('page') but I don't know
where to use it in the new scheme of things. Anyone have any insights?
Thanks,
Ken
_______________________________________________
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.