• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to embed a file into my project
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >How to embed a file into my project (From: Derrick Carlin <email@hidden>)
 >Re: How to embed a file into my project (From: Todd Blanchard <email@hidden>)
 >Re: How to embed a file into my project (From: Derrick Carlin <email@hidden>)

  • Prev by Date: Re: How to embed a file into my project
  • Next by Date: Re: Trying to bind to NSTreeController
  • Previous by thread: Re: How to embed a file into my project
  • Next by thread: Abstract entities and relationships
  • Index(es):
    • Date
    • Thread