• 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: Cocoa Equivalents for AppleEvent calls
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa Equivalents for AppleEvent calls


  • Subject: Re: Cocoa Equivalents for AppleEvent calls
  • From: Brian Webster <email@hidden>
  • Date: Sat, 4 May 2002 10:15:16 -0500

On Saturday, May 4, 2002, at 12:05 AM, cocoa-dev-
email@hidden wrote:

Does cocoa have anything equivalent to the following AppleEvent calls?

AESend

Nope. There used to be a method on NSAppleEventManager back in public beta days, but it never worked and they removed it before 10.0.

AEPut/GetParamPtr
AEPut/GetAttributePtr

These you'll have to do indirectly, by first using paramDescriptor/attributeDescriptor and then getting the NSData from the result of that.

And if it has an AESend equivalent, what call would be used to place
the PSN of the target app into the AppleEvent?

You can get an app's PSN by using the Carbon Process Manager. Once you have it, create a descriptor of typeProcessSerialNumber with the PSN structure as the data.

--
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.

  • Prev by Date: Re: Leaks When Running MultiThreaded (Even w/ AutoRelease Pool)
  • Next by Date: Disable custom toolbar items
  • Previous by thread: Re: Cocoa --> GnuStep
  • Next by thread: Disable custom toolbar items
  • Index(es):
    • Date
    • Thread