• 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: Apple Events in Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Apple Events in Cocoa (From: Brendan Younger <email@hidden>)

  • Prev by Date: Multiple NSTableView question
  • Next by Date: Re: retain, release, autorelease (was Checkboxes and NSBox titles)
  • Previous by thread: Apple Events in Cocoa
  • Next by thread: Re: Apple Events in Cocoa
  • Index(es):
    • Date
    • Thread