Re: class variables
Re: class variables
- Subject: Re: class variables
- From: Erik Buck <email@hidden>
- Date: Mon, 19 Feb 2007 07:56:50 -0800 (PST)
"1) Just set it up statically and not worry about memory management. I
only want one instance of it and it should persist through the run of
the entire app anyway. I don't need to worry about catching the
terminate reply to release it, since it'll be cleaned up by program
end anyway."
Option 1 is fine given the usage pattern you describe. Don't make things overly complicated for no reason. This pattern is used an many Cocoa applications.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden