• 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
Question about receiving 'odoc' events on launch
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Grabbing keystrokes in background app
  • Next by Date: Re: How to deal with long pathnames in Cocoa ?
  • Previous by thread: Re: dealing with different types of strings
  • Next by thread: Re: Question about receiving 'odoc' events on launch
  • Index(es):
    • Date
    • Thread