• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Converting NSAppleEventDescriptor to AppleEvent
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


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

  • Prev by Date: Re: How do I replace the "Do you want to save changes...?" sheet?
  • Next by Date: Re: Can I destine different customer view class for one customer view?
  • Previous by thread: Converting NSAppleEventDescriptor to AppleEvent
  • Next by thread: NSTextView/Storage Fast deletion?
  • Index(es):
    • Date
    • Thread