FROM : Chris Ridd
DATE : Tue Jan 28 17:29:30 2003
On 28/1/03 3:48 pm, Josh Ferguson <<email_removed>> 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_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
DATE : Tue Jan 28 17:29:30 2003
On 28/1/03 3:48 pm, Josh Ferguson <<email_removed>> 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_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
| Related mails | Author | Date |
|---|---|---|
| Sascha Kujawa | Jan 25, 10:38 | |
| Josh Ferguson | Jan 28, 16:48 | |
| Chris Ridd | Jan 28, 17:29 |






Cocoa mail archive

