Hi there guys,
I am new to XCode development (and to the Mac world in general) and I just encountered a very simple problem that I can't figure out the answer to.
Could someone tell me how do you go about importing header files contained in a folder? So let's say you create a new project, and you decide to import the header file in your app's viewController using the following line
where MyFolder is obviously the name of the folder that contains the header file.
I tried creating different groups and then adding the folder containing the header file to those groups using both options "Recursively create groups for any added folders" and "Create folder reference for any added folder" but no matter what I tried the header file would always be imported properly only by
rather than
The only workaround I found was to basically make my file structure flat which is plain retarded. I'm sure I'm missing something but can't figure it out for several hours now
Your help would be very appreciated!
Cheers!
I am new to XCode development (and to the Mac world in general) and I just encountered a very simple problem that I can't figure out the answer to.
Could someone tell me how do you go about importing header files contained in a folder? So let's say you create a new project, and you decide to import the header file in your app's viewController using the following line
Code:
#import "MyFolder/headerFile.h"
where MyFolder is obviously the name of the folder that contains the header file.
I tried creating different groups and then adding the folder containing the header file to those groups using both options "Recursively create groups for any added folders" and "Create folder reference for any added folder" but no matter what I tried the header file would always be imported properly only by
Code:
#import "headerFile.h"
rather than
Code:
#import "MyFolder/headerFile.h"
The only workaround I found was to basically make my file structure flat which is plain retarded. I'm sure I'm missing something but can't figure it out for several hours now
Your help would be very appreciated!
Cheers!
