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?



Steve Roy,
> After thinking about it overnight (cook slowly...), I realize that
my real
> problem is that my application does two different things on
startup. If a
> document was double-clicked, it should just open the document.
Otherwise, it
> should show a login window.

Ah, this was another interesting problem actually in the same code where I
tried to wrest control from Apple over handling AppleEvents. Mine was
supposed to use Internet Config information to change file signatures. So it
was definitely supposed to have files. The question being was were they
double-clicked/drag and dropped at start-up? If not I still needed files so
it was supposed to show them my file dialog. Initially it did in fact work
strictly on timing dependencies and didn't do that all that badly. If by the
time my File Dialog had finished initializing I hadn't received any odoc
events I assumed there weren't going to be any and showed the File Dialog.
Now, after some list discussion of the undocumented event handling
interfaces present in some of the JDirect sample code. Actually the file
creator checker one IIRC, small world. It was I think decided that with
those methods timing dependencies could be eliminated. I think I spliced
this back into my code which my Son of Space Aliens download if interested,
based on a Internet Config SDK example. Should still work JDirect 2 on
Classic, JDirect 3 still simmering on the back burner.
Although I still think my own _humble_ best attempt at Open Document
handling so far is in my Combined application.

Mike Hall <email@hidden>
<http://www.spacestar.net/users/mikehall>




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.