• 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: ARC and Singletons
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ARC and Singletons


  • Subject: Re: ARC and Singletons
  • From: Kyle Sluder <email@hidden>
  • Date: Mon, 01 Aug 2011 10:19:11 -0700

On Mon, Aug 1, 2011 at 10:12 AM, Kyle Sluder <email@hidden> wrote:
> if it's necessary to store the shared instance in an ivar, why not do
> the following:

Wow, I need coffee. ivars vs class variables…

Wow.

Forget that second example. That's just terrible.

Imagine, instead, I used whatever storage mechanism Dave recommended.
Or even objc_setAssociatedObject on the class object itself.

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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

References: 
 >ARC and Singletons (From: Jeff Kelley <email@hidden>)
 >Re: ARC and Singletons (From: Dave Zarzycki <email@hidden>)
 >Re: ARC and Singletons (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: ARC and Singletons
  • Next by Date: Re: [iOS] Block animation kills performance
  • Previous by thread: Re: ARC and Singletons
  • Next by thread: Re: ARC and Singletons
  • Index(es):
    • Date
    • Thread