Re: dealloc strangeness in my custom view
Re: dealloc strangeness in my custom view
- Subject: Re: dealloc strangeness in my custom view
- From: Chris Ridd <email@hidden>
- Date: Tue, 28 Jan 2003 16:29:30 +0000
On 28/1/03 3:48 pm, Josh Ferguson <email@hidden> wrote:
>
Sascha,
>
>
I know this is true for C++ and I assume this is true in Objective-C. Since
>
this object doesn't need to be deallocated while the application is running,
>
it's perfectly safe to allow it to be cleaned up when the application's memory
>
is freed when the process is terminated.
Nod. It is probably quicker to exit the process instead of potentially
paging in every object you've got allocated, just to dealloc it :-)
Objective-C's -dealloc method is also not an exact equivalent of a C++
destructor, as it is only meant to be used to free up memory. Other sorts of
cleanup (removing temporary files etc) should be done by waiting for an
applicationWillTerminate notification.
Cheers,
Chris
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.