Re: Is Apple's singleton sample code correct?
Re: Is Apple's singleton sample code correct?
- Subject: Re: Is Apple's singleton sample code correct?
- From: Scott Anguish <email@hidden>
- Date: Mon, 28 Nov 2005 03:42:28 -0500
On Nov 28, 2005, at 1:01 AM, David Gimeno Gost wrote:
I'm not sure why I would care? The aim is to make things easier
for the consumer. The current implementation means the object can
be used consistently with Cocoa's memory management rules,
whatever pattern is used.
No, it doesn't. It only works for the most common resources (e.g.
memory), not for resources that need special clean up procedures.
once again, it works fine. However, you are responsible for your
class registering for the appropriate termination notification to do
the cleanup.
but even then, apps can die before their time. so apps need to be
able to handle this situation as well.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden