• 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: Global in NSApplication
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Global in NSApplication (From: Jens Alfke <email@hidden>)

  • Prev by Date: NSTask and uudecode
  • Next by Date: Re: Context menu on NSOutlineView, which row is active/selected?
  • Previous by thread: Re: Global in NSApplication
  • Next by thread: Re: Global in NSApplication
  • Index(es):
    • Date
    • Thread