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

Global Object


  • Subject: Global Object
  • From: Tom Jones <email@hidden>
  • Date: Thu, 26 Nov 2009 09:18:14 -0800 (PST)

I'm writing a Foundation tool and I want to create a global object which I can reference any where in my code. This is for logging, so I want to declare my logging object in my main method and use it in any of my classes.

I thought I could just create a Global variable but that does not work.

What do I need to do?

Thanks,
tom
_______________________________________________

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: Global Object
      • From: Jens Alfke <email@hidden>
    • Re: Global Object
      • From: "Sean McBride" <email@hidden>
  • Prev by Date: Re: NSDatePicker updates its values on changing System's time zone
  • Next by Date: Re: Global Object
  • Previous by thread: Re: NSDatePicker updates its values on changing System's time zone
  • Next by thread: Re: Global Object
  • Index(es):
    • Date
    • Thread