• 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: Mixing Obj-C and C "methods"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mixing Obj-C and C "methods"


  • Subject: Re: Mixing Obj-C and C "methods"
  • From: Scott Ribe <email@hidden>
  • Date: Wed, 07 Aug 2013 07:36:23 -0600

On Aug 7, 2013, at 1:47 AM, Jean-Daniel Dupas <email@hidden> wrote:

> While all theses methods may look valid, what not simply use a static variable declared in your file ?

DING DING DING DING! WE HAVE A WINNER!

Actually, much of the history behind other methods for singletons revolves around big enterprisey nasty inter-tangled systems where developers lose track of (in many cases, never knew in the first place) the dependencies between globals.

Well, in my opinion, if you have so many dependencies between globals that you can't figure out in which order to initialize them, you have a far bigger problem.

--
Scott Ribe
email@hidden
http://www.elevated-dev.com/
(303) 722-0567 voice





_______________________________________________

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: 
 >Re: Mixing Obj-C and C "methods" (From: Maxthon Chan <email@hidden>)
 >Re: Mixing Obj-C and C "methods" (From: Jean-Daniel Dupas <email@hidden>)

  • Prev by Date: Re: Mixing Obj-C and C "methods"
  • Next by Date: Re: Synchronous Serial Port Protocol messaging With NSOperationQueue/GCD
  • Previous by thread: Re: Mixing Obj-C and C "methods"
  • Next by thread: Re: Mixing Obj-C and C "methods"
  • Index(es):
    • Date
    • Thread