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?



Les R. Titze <email@hidden> wrote:

> I had to work around this issue in my code to determine when to show a new
> untitled document.

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.

Now if my MRJOpenDocumentHandler is called *after* my start() method, how
can I do this? Should I put a delay in there to wait and see if there is
going to be an 'odoc' event? Sounds like a can of worms to me...

Doing multiple test runs, I saw one case where the MRJOpenDocumentHandler
was called *before* the start() method, but in all other cases, it was
called *after*.

How did you determine that you needed to show an untitled document?

Steve

--
Steve Roy <email@hidden>


References: 
 >Re: Open Handler, when is it called? (From: email@hidden (Les R. Titze))



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.