|Dec 10, 2008, 06:47 PM||#1|
Quitting Application & Open Files
I've got the AudioQueue stuff working to play sound in my application but I'm wondering what happens to all the opened audio files if the user quits the app using the home button, for example.
Do the open files get automatically closed?
What about audio buffers etc?
If I have to do manual cleaning up on exit, where do you do the cleaning up? I set a breakpoint in the dealloc method in my sound class but it doesn't seem to get called when the app is forced to quit (via the home button).
|Dec 10, 2008, 07:09 PM||#2|
|Dec 10, 2008, 07:31 PM||#3|
The OS mops up everything on termination, but it's often cleaner for your app to clean up the way you want in the applicationWillTerminate delegate.
It's also better for writing clean code and for debugging if you can account for everything in your termination delegate. e.g. if there's something you haven't closed or deallocated, it's a potential leak, etc.
iOS App Developer: Apple II+, Mac 128k->512ke, MacBook Air 11, iPhone 6
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|Right-Click to Toggle Between Open Files in an Application||MSchleicher||Mac Basics and Help||0||Mar 8, 2014 11:24 AM|
|Quitting Open Applications. Good Idea?||Pndrgnsvc||iPhone Tips, Help and Troubleshooting||3||Jan 26, 2014 01:57 PM|
|Application Windows showing Preview & QuickTime's previously viewed files.||globalone||Mac Applications and Mac App Store||0||Dec 15, 2012 11:34 AM|
|Finally you can close all windows when quitting an application||Doc69||OS X 10.8 Mountain Lion||2||Jul 28, 2012 09:51 AM|
|Since Lion & Restore can't open Excel files||kimberleyallen||Mac Basics and Help||2||Jul 21, 2012 07:43 AM|
All times are GMT -5. The time now is 08:41 PM.