Re: Global in NSApplication
Re: Global in NSApplication
- Subject: Re: Global in NSApplication
- From: Scott Ribe <email@hidden>
- Date: Wed, 27 Jan 2010 10:38:32 -0700
- Thread-topic: Global in NSApplication
> It would be a bad
> idea to make any AppKit calls before NSApplicationMain, for example.
Not too hard to avoid that in the -init method ;-)
> This also makes it difficult to use the Debug class in a framework/
> library.
Yes, use from framework/library is the primary motivator for using a
singleton pattern.
--
Scott Ribe
email@hidden
http://www.killerbytes.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