Loading include files from a bundle
Loading include files from a bundle
- Subject: Loading include files from a bundle
- From: Erick van Rijk <email@hidden>
- Date: Thu, 06 Feb 2003 16:13:07 +0100
The app I'm working on needs to know where I have put my separate
include files. My first thought was to put them in a folder "include"
inside the main bundle and look for them using this routine
includePath = [[NSBundle mainBundle] pathForResource:@"include"
ofType:@"bundle"];
But when I do NSLog( @"includePath is %@",includePath );
it returns returns includePath is (null). So I conclude it can't find
my include directory.
So here are my questions:
Is an folder copied using the Build Phases Copy Files routine really a
bundle?
I tried copying the include files as resource in a subdirectory
/include ( so in the .app it will be placed at
/Resources/include/file.h)
if this doesn't create a bundle, how do you create a bundle I haven't
been able to find that out using the cocoa documentation.
Thanks
Erick
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.