• 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
Singleton as a common area?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Singleton as a common area?


  • Subject: Singleton as a common area?
  • From: Jerry LeVan <email@hidden>
  • Date: Wed, 20 Feb 2008 13:16:20 -0500

It is probably due to my meager design skills, but more
than once I have wished that I could have easy access to
objects from other objects.

I have a tendency to build an object and fiddle with it
and when I understand  how it works, I have to ease the
rascal into the main application.

This generally means that I have lots of source files.

It seems to me that a singleton object could be used
to hold lots of global state info and it would be
easy to instantiate the singleton in each of the
source files to access the stashed info...

Is this a reasonable way to share info?

Thanks,

Jerry

_______________________________________________

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


  • Follow-Ups:
    • Re: Singleton as a common area?
      • From: Graham <email@hidden>
    • Re: Singleton as a common area?
      • From: j o a r <email@hidden>
  • Prev by Date: Re: Custom Core Image filter help
  • Next by Date: NSCollectionView / NSArrayController binding issues
  • Previous by thread: Re: White highlighted appearance for icons in NSSegmentedCell
  • Next by thread: Re: Singleton as a common area?
  • Index(es):
    • Date
    • Thread