Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Open Handler, when is it called?



Nick Kledzik <email@hidden> wrote:

> When a document is double-clicked in the Finder, the Finder (launches
> the target app, if not already running) and then sends an 'odoc'
> AppleEvent to the target application. That event is handled by our AWT
> and if an MRJOpenDocumentHandler is installed, it is called.
>
> So there is no timing you can rely on for when your OpenDocumenHandler
> is called.

OK. More specifically, what about double-clicking a document when the
application is not running, with MRJ 2.2? Obviously the 'odoc' event can't
be sent too quickly otherwise the MRJOpenDocumentHandler might not be
registered yet. On the other hand, why is my handler called way past the
constructor of my application? How does MRJ decide it is time to call
MRJOpenDocumentHandler?

(I feel like I am not explaining myself right, so don't be afraid to let me
know if it isn't...)

Steve

--
Steve Roy <email@hidden>


References: 
 >Re: Open Handler, when is it called? (From: Nick Kledzik <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.