• 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: n00b question about includes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: n00b question about includes


  • Subject: Re: n00b question about includes
  • From: j o a r <email@hidden>
  • Date: Sat, 11 Aug 2007 10:48:15 +0200


On 11 aug 2007, at 10.34, d2kagw wrote:

If I have tonnes of #defines declaring constants for my application (things like user preference keys, and model names etc) which I want to be made available to all the classes i'm writing (so I don't have to update all my classes every time I change/add a key)
Is there a way I can include some file that contains these defines? that get included at build time?


Create a "SharedDefines.h" header file for your defines and #import it as you would any other header file.

j o a r


Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: 
 >n00b question about includes (From: d2kagw <email@hidden>)

  • Prev by Date: Newbie question (if statement)
  • Next by Date: Re: Newbie question (if statement)
  • Previous by thread: n00b question about includes
  • Next by thread: Re: n00b question about includes
  • Index(es):
    • Date
    • Thread