• 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
NSAppleEventManager stops recieving events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSAppleEventManager stops recieving events


  • Subject: NSAppleEventManager stops recieving events
  • From: Fabian Lidman <email@hidden>
  • Date: Mon, 24 Jan 2005 12:58:19 +0100

Hello people,
Q: What could cause NSAppleEventManager to suddenly stop recieving apple events?


Sorry if anybody thinks this is off-topic for the Cocoa list. I tried asking this question at the applescript developer list a while back, but recieved no response.

I am using the new-ish NSAppleEventManager class to make my application scriptable. At startup, the proram install four different event handlers. I also catch NSAppleEventManagerWillProcessFirstEventNotification for debug purposes, and NSLog a little "hello world" message in its handler.
The application recieves apple events just like it's supposed to, until i open a document. Then the debug log is suddenly silent, and no new events are recieved (leading to a vague error on the applescript side -- the variable somethingIJustAssigned is undefined). I do not use Cocoa's document architecture. Documents aren't necessarily opened in a new window, they may just populate a few views in a single window. Opening a document doesn't install any new apple event event handlers.


Anybody got the slightest clue what could be stopping events from reaching the AE manager?

Thanks in advance,
Fabian

_______________________________________________
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:
    • Looking like an OS bug (Was NSAppleEventManager stops recieving events)
      • From: Fabian Lidman <email@hidden>
  • Prev by Date: Re: NSOutlineView: expanding an item retains it?
  • Next by Date: Re: Displaying symbol for Enter key in menu item
  • Previous by thread: Re: Services and threads... Help!
  • Next by thread: Looking like an OS bug (Was NSAppleEventManager stops recieving events)
  • Index(es):
    • Date
    • Thread