• 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: "Required AppleEvents"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "Required AppleEvents"


  • Subject: Re: "Required AppleEvents"
  • From: Marc Laffitte <email@hidden>
  • Date: Tue, 23 Oct 2001 11:32:23 +0200
  • Resent-date: Tue, 23 Oct 2001 11:43:40 +0200
  • Resent-from: Marc Laffitte <email@hidden>
  • Resent-message-id: <email@hidden>
  • Resent-to: email@hidden

Hi!
This is fine having NSApplication handling things automatically, but it cannot cover all what one could imagine.
So, is there a cocoa way (Obj-C) of sending or handling incoming Apple events?
For instance, I have to send a 'quit' AppleEvents to an app of mine.
The only way I found until now was to go back to "old fashioned" carbon stuff. This works fine, but... this requires me to give the app I want to quit a creator code. It would be nice to identify it with the new preferred "Identifier" string. For now, a new event type beside "typeApplSignature" for this purpose would fulfil this need.

By the way: It is sad that one cannot rely on LSFindApplicationForInfo to find an application. It may find it, or not if it has been moved by the user or has never been used or whatever, according to the new way the Finder is collecting application information. It's more flexible but less reliable than the good old Desktop database.

Marc

On mardi, octobre 23, 2001, at 07:40 , Brian Webster wrote:

On Tuesday, October 23, 2001, at 12:17 AM, cocoa-dev-
email@hidden wrote:

All I want to know right now is just how to add support the required
events - particularly the old Open Doc (was it 'ODOC' in classic??)
event. I am not using the Multi-Document architecture, but still want to
receive open doc events from certain image formats and process them.

The required Apple events are handled automatically by NSApplication. When an 'odoc' event is sent to your application, the -application:openFile: message will be sent to the application delegate for each file to be opened.


  • Prev by Date: NSTextView All Weird-Like and Stuff
  • Next by Date: Re: NSTextView All Weird-Like and Stuff
  • Previous by thread: Re: "Required AppleEvents"
  • Next by thread: Re: Paradigm Shifting: Observations & Questions
  • Index(es):
    • Date
    • Thread