Re: Apple Events in Cocoa
Re: Apple Events in Cocoa
- Subject: Re: Apple Events in Cocoa
- From: "John C. Randolph" <email@hidden>
- Date: Wed, 20 Jun 2001 16:44:47 -0700
Brendan,
I think the method:
- (OSErr)dispatchRawAppleEvent:(const AppleEvent *)theAppleEvent
withRawReply:(AppleEvent *)theReply handlerRefCon:(UInt32)handlerRefcon
...in the NSAppleEventManager class is what you need, but I haven't had
occasion to *send* any AppleEvents, so I don't know for sure. It's not
documented, unfortunately.
right now, I'm using this class to receive incoming events.
-jcr
On Wednesday, June 20, 2001, at 12:57 PM, Brendan Younger wrote:
I posted this once before but got no answer.
Does anyone know how to create apple events in cocoa for
inter-application communication? I can use NSScriptCommand to create a
command but I can't find any way to specify the receiver. I know it
has -setReceiversSpecifier but I don't know how to make a
NSScriptObjectSpecifier specify another application. Specifically, I
want to do some of the same things the dock does such as bring an app
frontmost, bring a specific window frontmost and get a list of an
application's windows. Please help.
Brendan Younger
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
"Scientology is both immoral and socially obnoxious... it is
corrupt, sinister and dangerous." - Mr. Justice Latey, London 1984