• 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
Header Files and Links to documentation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Header Files and Links to documentation


  • Subject: Header Files and Links to documentation
  • From: Ole Voß <email@hidden>
  • Date: Mon, 01 Nov 2004 14:32:09 +0100

Even though it is said, that obj-c does not relate to cocoa, I feel that it might be interesting to others:

In the book 'The C++ programming language' by Stroustroup I've found that chapter 9 explains many of the 'well-known' but obviously not well documented facts that have been mentioned during my search for answers.

The subject of precompiled headers brings another link which seems interesting enough to follow, though the ADC documentation suggests not to include things that will change often. I think that a globally unique variable for use by all classes within a project won't change often, so that looks like a likely place to put these:
http://developer.apple.com/documentation/DeveloperTools/Conceptual/Build_System/index.html


As a summary I've definitely learnt that header files must be re-included for each separate source file that they are required in. 'Source' means '.m', '.c', '.cpp'!
I've also learnt that the '.m' file has no special meaning for the compiler - it doesn't seem to have a special 'all-encompassing' meaning, but rather it's just another sourcefile which represents the starting point to my later program.


Thank you all for your help!

Ole.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Header Files and Links to documentation
      • From: Bob Ippolito <email@hidden>
    • Re: Header Files and Links to documentation
      • From: Alex Clarke <email@hidden>
References: 
 >Re: Where to include header files - relates to last question on variable scope (From: Jiri Volejnik <email@hidden>)
 >Re: Where to include header files - relates to last question on variable scope (From: Ole Voß <email@hidden>)

  • Prev by Date: Re: Multiple Documents?! [newbie]
  • Next by Date: Re: Arranging Windows [Newbie]
  • Previous by thread: Re: Where to include header files - relates to last question on variable scope
  • Next by thread: Re: Header Files and Links to documentation
  • Index(es):
    • Date
    • Thread