Re: Cocoa Equivalents for AppleEvent calls
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.