Amazon.com Widgets Foundation.h file
Welcome, Guest. Please login or register.
Did you miss your activation email?
September 21, 2014, 07:04:09 AM
Home Help Search chat Login Register 
News: Read this please.The Great Kangaroo Escape Looking for reviews of the 4th ed on Amazon!   Twitter:  @skochan
                     

+ Official Forum for Programming in Objective-C (the iPhone Programming Language) - Stephen Kochan
|-+ Old Stuff
| |-+ Chapter Study
| | |-+ Chapter 2 - Programming in Objective-C
| | | |-+ Foundation.h file
Pages: [1] Go Down
Print
Author Topic: Foundation.h file (Read 1270 times)
JackRabbit
Jr. Member
**
Posts: 54



Email




on: November 28, 2011, 12:40:50 AM

Greetings everyone.

One of the 1st lines in a Objective-C program is:

#import <Foundation/Foundation.h>

I assume that this means the Foundation.h file is nested in the Foundation file.

Am I correct?


JR
Logged
Fred
Newbie
*
Posts: 46






Reply #1 on: November 29, 2011, 09:02:14 AM

JR,

The Foundation.h file contains references to many .h files that implement Objective-C commands.  By including this file, your program has access to the Foundation framework commands.  You can search the Apple documentation in Xcode to see all the commands that are part of the Foundation Framework, but basically every Objective-C program uses commands from the Foundation Framework, so that file is included in all Objective-C programs.  Other foundation files will also be added as the programs need to access other commands in the Objective-C language.

Fred
Logged

Fred
Pages: [1] Go Up
Print
Jump to:



Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Entire forum contents (c) 2009 classroomM.com. All rights reserved.