• 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: AppleEvent handlers don't seem to work.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleEvent handlers don't seem to work.


  • Subject: Re: AppleEvent handlers don't seem to work.
  • From: Annard Brouwer <email@hidden>
  • Date: Wed, 14 Jun 2006 18:10:35 +0200

Make sure you install these event handlers as soon as possible. For instance in your NSApp delegate in -applicationWillFinishLaunching:. Otherwise the standard Apple handler has already handled this event (it is in the docs by the way).

Annard

On 14 Jun 2006, at 17:49, Martin Redington wrote:
====

My understanding is that my app will receive an apple event from LSLaunchURLSpec, and that I can inspect this AppleEvent, to see if my passthrough arg os present or not.

=====

So, I tried installing new kAEOpenApplication, kAEReopenApplication, and kAEOpenDocuments handlers, in my controller's awakeFromNib method, like so:

NSAppleEventManager *appleEventManager = [NSAppleEventManager
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: AppleEvent handlers don't seem to work.
      • From: Martin Redington <email@hidden>
References: 
 >AppleEvent handlers don't seem to work. (From: Martin Redington <email@hidden>)

  • Prev by Date: Incompatible Applescript
  • Next by Date: Re: Difference in relationships storage between various storage options (CoreData)
  • Previous by thread: AppleEvent handlers don't seem to work.
  • Next by thread: Re: AppleEvent handlers don't seem to work.
  • Index(es):
    • Date
    • Thread