Re: Converting NSAppleEventDescriptor to AppleEvent
Re: Converting NSAppleEventDescriptor to AppleEvent
- Subject: Re: Converting NSAppleEventDescriptor to AppleEvent
- From: Mark Piccirelli <email@hidden>
- Date: Mon, 19 Nov 2001 11:04:11 -0800
Neal --
(I think cocoa-dev is probably the most appropriate of the three lists
to which you posted.)
There is unfortunately no public accessor method for the AEDesc that an
NSAppleEventDescriptor wraps. There's a private method, but it's
private, and it's name is definitely changing in the future.
We are definitely considering adding Apple event sending to a future
version of Cocoa. It's been requested many times. Until then, you
really do have to use Carbon API, and lots of it.
-- Mark
On Saturday, November 17, 2001, at 11:49 PM, Neal A. Crocker wrote:
I was wondering if there was a simple way to convert a
NSAppleEventDescriptor object to an variable of AppleEvent type (a
Carbon data type). The reason I ask is I want to make a Foundation
tool that contstructs and send appleevents. The constructing part can
be accomplished using the NSAppleEventDescriptor class, but Foundation
has no way to send it. I have to use AESend from Carbon, which takes
an argument of the AppleEvent data type. I don't want to simply go
Carbon all the way for my tool, since I anticipate making the tool
purely Foundation once Foundation has the capability to send
appleevents.