• 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: Custom handling for 'odoc' events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom handling for 'odoc' events


  • Subject: Re: Custom handling for 'odoc' events
  • From: Martin Ott <email@hidden>
  • Date: Fri, 18 Apr 2003 18:58:38 +0200

Have a look at the class NSAppleEventManager, it has the method
- (void)setEventHandler:(id)handler andSelector:(SEL)sel
forEventClass:(AEEventClass)eventClass andEventID:(AEEventID)eventID that
might do what you want.

Thanks for the hint. I overlooked this. But it also doesn't work for me. I set an event handler for the EventClass kCoreEventClass aka 'aevt' and the EventID to kAEOpenDocuments aka 'odoc'.
When I used LaunchServices to open documents in my app the handler was ignored completely. The following script triggered my handler:

tell application "MyApp"
open file "somefile"
end tell

The problem is that Project Builder (which plays the server role for the ODB Editor Suite implementation) uses LaunchServices or some API which is built on top LaunchServices. Which Apple event sends LaunchServices when opening an app with documents?


Cheers,
--
Martin Ott Email: email@hidden
Institut fuer Informatik
Technische Universitaet Muenchen
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Custom handling for 'odoc' events
      • From: Martin Ott <email@hidden>
References: 
 >Re: Custom handling for 'odoc' events (From: Nathan Day <email@hidden>)

  • Prev by Date: Re: Show / Hide Window
  • Next by Date: Categories in static lib not loading
  • Previous by thread: Re: Custom handling for 'odoc' events
  • Next by thread: Re: Custom handling for 'odoc' events
  • Index(es):
    • Date
    • Thread