[futurebasic] Re: [FB] Life After Quit

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : June 2010 : Group Archive : Group : All Groups

From: Robert Covington <artlythere@...>
Date: Thu, 10 Jun 2010 05:40:03 -0400
Pretty sure setting up then using the AE (Appleevent)  
_kAEQuitApplication event will work for you? That's where I set the  
flag in Compositor (along with Menu and other)

There a reason you can't add and use a _fileMenuQuitItem?

If you know the file name and location, can always do this (as I see  
RP suggested):

After:

RunApplicationEventLoop()

//(or Do HandleEvents loop)

//Last line:

Fn DeleteTempFileFunction // a function you call to kill any files  
left over

End

Maybe I am not understanding the situation though.


On Jun 9, 2010, at 12:22 PM, Bernie wrote:

>
> I said:
>
>> On 9 Jun 2010, at 16:38, Eugen Rosu wrote:
>>
>>> I want to delete a temporary file when I quit an application.
>>> How can I do this in my below example :
>>> '----------------------------------------------
>>> < code snip >
>>> '----------------------------------------------
>>
>> I wonder if it can be done in a CE kEventAppTerminated handler?
>>
>
> Or by intercepting kHICommandQuit in a command process handler  
> installed on the application (see FBShell example).
>
> Bernie
>
> --
> To unsubscribe, send ANY message to: futurebasic- 
> unsubscribe@...
>