[futurebasic] PG: Opening files from the finder.

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : March 1999 : Group Archive : Group : All Groups

From: David <David.Cottrell@...>
Date: Wed, 10 Mar 1999 14:53:53 +1100
Warning - this is not as easy as it seems.

I have a PG app which will open files from the finder fine. No problems.
Can do that. 

The difficulty is: if the user starts the app by double clicking the app
icon, how do I get it to throw up an open file dialog? If I do this at a
_mainStart even, it also comes up when it is unneeded, such as when a user
double clicks a data file, or drops one on the app.

I say this is not easy, because plenty of apps get it wrong and one always
gets a _mainStart before a _mainOpen, so you cant set some flag then. PG
appears to go through its apple event handlers untill after _mainStart (I

Any ideas?