Creating a Singleton Object
Creating a Singleton Object
- Subject: Creating a Singleton Object
- From: Michael McGonagle <email@hidden>
- Date: Wed, 12 Mar 2003 16:04:03 -0600
Hello,
I am trying to implement a Document-based program and have an object
that I want to share among all these document objects. How do I create
an object that only creates a single instance, as well as providing all
other objects access to that "global" instance?
If this sounds like a big mistake in design, please offer some other
suggestions.
Thanks,
Mike
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.