tags:

views:

4

answers:

1

This is pretty strange.

I have a class in Classes folder of my project (a .h file and a .m file).

When I try to import it like so

#import <myClass.h>

I get an error saying "no such file or directory".

It is definitely there. What could be going on?

A: 

You should use

#import "myClass.h"

<> are used for system libraries and "" for local and system libraries.

System libraries are the ones in directories given by the -I and -F or -framework flags on the command line of the compiler

The rules here are the same for C's #include GNU compiler (with the addition for frameworks)

Mark
Thankyou!That was driving me mad. Don't know how I didnt spot it
dubbeat