On 3/15/07, Tobias Meyer-Janson
<[EMAIL PROTECTED]> wrote:
> Hi,
>
>
> is there a way to determine if an app launch was initiated by
> dropping a file? I want my app to open a default document file but
> not if it was launched by dropping any other file.
>     The OpenDocument event fires after the Open event has finished. So
> if my app opens a default document in the Open event, it does it
> under any condition.

You may need to refactor your application to take this into account.
For example, you can create a "Startup" method where you place the
bulk of your Open event handler code.

If it's helpful, the NewDocument event fires when your application is
launched without a document (file) references such as one of its
documents being double-clicked. The OpenDocument event fires in such a
case, or if a user drops the document icon on your application's icon
in the Finder.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to