Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Converting NSAppleEventDescriptor to AppleEvent



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.


References: 
 >Converting NSAppleEventDescriptor to AppleEvent (From: "Neal A. Crocker" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.