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: A .qtz is like source code. No way to compile it?



Hi !

On Jan 19, 2006, at 11:07 PM, Christopher Hickman wrote:

No built-in support.  The best I can suggest is a QCView subclass that
implements a loadCompositionFromEncryptedFile: method to convert an
encrypted qtz file packaged in your bundle back to a normal qtz file in a
temporary directory and call loadCompositionFromFile: on that file.

Actually I am not using any QCView but several QCRenderer.
I use something like [[QCRenderer alloc] initWithOpenGLContext:_openGLContext pixelFormat:_format file:[[NSBundle mainBundle] pathForResource:@"MyComp" ofType:@"qtz"]];
But I guess you mean I can subclass QCRenderer and create a method like
[[QCRenderer alloc] initWithOpenGLContext:_openGLContext pixelFormat:_format encryptedfile:[[NSBundle mainBundle] pathForResource:@"MyComp" ofType:@"qtz"]];
Then comes another question... do you have an easy way to encrypt the file or should I implement an encryption algorithm by myself (dough!) ?



Obviously, you've got a weak link in the chain, since QCView and QCRenderer
can only load from a qtz file on disk.  I think that a radar request for a
-loadComositionFromData: or -loadCompositionFromDictionary or some such
would be nice.  Then you could decrypt the data into an NSData object or
NSDictionary object and feed the view from that without unencrypted data on
disk.

I will take care of that !

Thanks a lot for your answer !

Regards

Fabrice

 _______________________________________________
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: 
 >RE: A .qtz is like source code. No way to compile it? (From: "Christopher Hickman" <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.