Thursday, March 1, 2012

Objective-C basic - [import from library and user created file]

Now we will discuss about objective –c in more details.  If we will see a code in objective-c ,at the top , then we will get import key word followed by file names. Here we may find two different pattern of declaration.
#import <someFileName.h>
#import “someFileName.h”      
What is the difference between these?
Nothing tough, first one is for a header file from library folder and second one is for a header file from application folder itself.
Very easy, right?
#import <foundation/foundation.h> //import foundation header file from library
#import “myHeader.h” //import myHeader.h file from my project/app folder.
That’s it. See you in next post.

No comments: