New topic: 

Perform some action before Application Quits

<http://forums.realsoftware.com/viewtopic.php?t=29704>

       Page 1 of 1
   [ 2 posts ]                 Previous topic | Next topic         Author  
Message       shaggymac           Post subject: Perform some action before 
Application QuitsPosted: Sun Aug 23, 2009 10:56 pm                        
Joined: Fri Feb 29, 2008 5:25 pm
Posts: 378              When the user clicks the X in Windows or 

AppName -> Quit AppName (on a Mac)

I want to save the contents of the listbox before the app quits.

How can i delay the app from quitting so that the required contents get saved 
properly     
_________________
http://www.oneoranephone.com
Free calls to USA & Canada
Free calls to Europe or Asia
Free calls to Puerto Rico
Plans starting at $14.95

http://www.mupromo.com/?ref=4850
Today's MacUpdate Promo, 40% off  
                            Top                npalardy           Post subject: 
Re: Perform some action before Application QuitsPosted: Sun Aug 23, 2009 11:01 
pm                        
Joined: Sat Dec 24, 2005 8:18 pm
Posts: 5224
Location: Canada, Alberta, Near Red Deer              If you need to save a 
listbox the content have to be saved before the windows containing it closes
Check the cancel close event on the window
The close event on the window is too late as that is AFTER all the controls 
close events which means the control no longer exists so you can't access it's 
contents
The Close event of the app is similarly too late UNLESS you have saved the 
contents of the list box to some internal representation first     
_________________
My web site Great White Software
RBLibrary.com REALbasic learning  
                            Top           Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 2 posts ]     
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to