• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: class variables
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: va_list, formats to pass as arguments
  • Next by Date: Re: va_list, formats to pass as arguments
  • Previous by thread: Re: class variables
  • Next by thread: va_list, formats to pass as arguments
  • Index(es):
    • Date
    • Thread