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

  • Prev by Date: How to embed a file into my project
  • Next by Date: Re: How to embed a file into my project
  • Previous by thread: How to embed a file into my project
  • Next by thread: Re: How to embed a file into my project
  • Index(es):
    • Date
    • Thread