views:

99

answers:

1
+1  Q: 

Objective-C Import

What is the difference between:

#import "foo.h"

and:

#import <foo.h>
+6  A: 

#import "foo.h" is normally used for headers of your project.

#import <foo.h> are headers of frameworks you link to.

Georg
While this is generally the case, I believe the technical answer is the directory in which the compiler looks for the header file. Quotes has it look in the same directory as the source code, while <> have it look in the standard framework directories.
Stephen Mesa
Actually, it's even a little more complex than that. GCC allows you to specify which directories are searched for <> or "" includes.http://developer.apple.com/mac/library/documentation/DeveloperTools/gcc-4.0.1/gcc/Directory-Options.html
Mark Bessey
thanks, esp. to Mark Bessey and Stephen Mesa
Johannes Rudolph