Amazon.com Widgets importing
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 25, 2013, 05:27:46 PM
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 7 - More on Classes
| | | |-+  importing
Pages: [1]   Go Down
Print
Author Topic: importing  (Read 692 times)
verybadcat
Newbie
*
Posts: 14






« on: August 18, 2009, 02:43:39 PM »

I am working on the FractionTest example from this chapter.  I see the FractionTest.m file contains the line

#import Fraction.h

Also the Fraction.m file contains the same line.  But nothing says to import Fraction.m.  So how does the compiler know that file even exists?
Logged
skochan
Administrator
Hero Member
*****
Posts: 3106







« Reply #1 on: August 18, 2009, 04:14:40 PM »

fraction.m is the code that implements the methods.  This code is linked together with any other .m files that are part of the project, and is managed by Xcode.  In addition, any code from the libraries is also linked together with the program at that time.   I discussed this in another thread as well, so you may want to search for it.

Cheers,

Steve Kochan
Logged
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.