Re: { Semi-Newbie } Inverse of +initialize?
Re: { Semi-Newbie } Inverse of +initialize?
- Subject: Re: { Semi-Newbie } Inverse of +initialize?
- From: David Remahl <email@hidden>
- Date: Sat, 12 Oct 2002 00:55:32 +0200
>
Cleaning up temporary files and the like should be done in the app
>
delegate's -applicationWillTerminate: method.
I don't think that is particularly good OO design...The application delegate
shoudn't have to know what connections of different kinds other objects in
the program may create. There is of course the possibility of making some
kind of convention that objects which need to "say goodbye" in one way or
the other respond to a -goodbye message or -cleanup or something like that,
but I think the -dealloc method is a more logical place to place clean up
code.
/ David
_______________________________________________
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.