Re: How to embed a file into my project
Re: How to embed a file into my project
- Subject: Re: How to embed a file into my project
- From: Todd Blanchard <email@hidden>
- Date: Tue, 12 Jul 2005 22:48:43 -0700
Add the file to your project's resources folder and make sure it is
added to the Copy Bundle Resources build phase.
Then, in your program you can say:
NSString *filePath = [[NSBundle mainBundle]
pathForResource:@"DcScreenSaver1" ofType:@"qtz"];
On Jul 12, 2005, at 10:40 PM, Derrick Carlin wrote:
How can I embed a file into my application?
I have this line:
_renderer = [[QCRenderer alloc]
initWithOpenGLContext:_openGLContext pixelFormat:format file:@"/
Users/derrickc/dc_SS_test1/DcScreenSaver1.qtz"];
It loads a .qtz document at runtime. I would like it to load it
from within the application instead of a path off the disk. I do
not want the file to be easily to find for the end user.
Hopefully I'm being clear.
Derrick
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden