Re: Custom handling for 'odoc' events
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.