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 23:11:25 -0700
In ProjectBuilder, expand the target icon in the left outline view
and you'll see the targets. One is your program name. Expand that
to see the build phases. Drag the file name from within the
resources folder and drop it onto the Copy Bundle Resources item
within the expanded target items. Expand the Copy Bundle Resources
item to make sure the file name appears. Anything added to this
phase gets copied into the Resources folder in your app wrapper.
On Jul 12, 2005, at 10:58 PM, Derrick Carlin wrote:
Thanks for the quick response! I was looking at the NSBundle but
wasn't getting anywhere.
How do I add it to the Copy Bundle Resources build phase? I've got
it in resources.
I've modified my code like so:
NSString *filePath = [[NSBundle mainBundle]
pathForResource:@"DcScreenSaver1" ofType:@"qtz"];
_renderer = [[QCRenderer alloc]
initWithOpenGLContext:_openGLContext pixelFormat:format
file:filePath];
I'm very new to this. THANKS much for your help.
-
Derrick Carlin
_______________________________________________
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