Question about receiving 'odoc' events on launch
Question about receiving 'odoc' events on launch
- Subject: Question about receiving 'odoc' events on launch
- From: Laurie Gill <email@hidden>
- Date: Wed, 16 Jan 2002 13:11:56 -0800
I'm trying to set up a Cocoa application to receive 'odoc' events on launch.
According to online documentation provided by Apple, scripting support is
built in to Cocoa. but I have so far been unable to get my application to
receive the event.
Here is the link I've been using to figure things out:
<
http://developer.apple.com/techpubs/macosx/Cocoa/TasksAndConcepts/Programmi
ngTopics/ Scriptability/index.html>
So far, I have: - added bundle information to my applications'" info.plist"
and set the NSAppleScriptEnabled key to "YES".
- added a delegate to NSApplication to handle openFile.
According to the link above, and from perusing the code in the TextEdit
example (which handles 'odoc' events perfectly), that should be enough to
capture the events. But my openFile delegate is not being called. Any ideas
as to what am I leaving out? And is there any better documentation regarding
Cocoa scripting?
Thanks,
--George