Welcome, Guest. Please login or register.
Did you miss your activation email?
July 26, 2016, 01:25:05 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
Author Topic: Foundation.h file (Read 2011 times)
Jr. Member
Posts: 54

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?

Posts: 46

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


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.



Pages: [1] Go Up
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.