Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (no subject)



If you were to drop a QCView into your application, you perform the step of embedding the quartz composition in Interface Builder, and its stored in your nib file. This should prevent most end users from the possibility of stumbling across your composition.

HTH,

  Walt
----
On Jul 13, 2005, at 12:34 AM, Tim Clark wrote:

Hi Derrick,

If you add the composition file to your XCode project, when it is compiled the .qtz file is copied as a resource, and you can access it using the code below.

    NSString * path = [[NSBundle mainBundle] pathForResource:@"DcScreenSaver1" ofType:@"qtz"];
    if (![_view loadCompositionFromFile: path])
    {
        NSLog(@"Could not load composition from path: %@)!", path);
    }

Hope this is what you were after!

Kind regards,
Tim


On 13/07/2005, at 3:11 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

-
Derrick Carlin        

   email@hidden    (work)    415.448.3763
email@hidden    (home)    415.883.3795

email@hidden (mobile)    415.328.1583

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      (c)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-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.
Quartzcomposer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden

This email sent to email@hidden

References: 
 >(no subject) (From: Derrick Carlin <email@hidden>)
 >Re: (no subject) (From: Tim Clark <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.