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.
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.
Topher
________________________________
From: quartzcomposer-dev-bounces+tophu=email@hidden
[mailto:quartzcomposer-dev-bounces+tophu=email@hidden] On Behalf
Of Fabrice Pipart
Sent: Wednesday, January 18, 2006 9:43 AM
To: email@hidden
Subject: A .qtz is like source code. No way to compile it?
Hi !
Let's say I would like to distribute a piece of software based on Quartz
Composer.
Is there anyway to avoid having my compositions directly available in my
application resources?
I mean it is almost like giving my source code !
I have thought about renaming my composition "comp.whatever" but then it
seems impossible to run that composition...
Or is it a solution to encrypt my file first and then decrypt my file, copy
it to /tmp and finally load it?
Is there any other solution I did not think about?
Would it be time to fill a radar?
Regards
Fabrice
www.icconsulting.mc
International Corporate Consulting
Palais de la Scala
1 avenue Henri Dunant
Suite 1155
MC - 98000 Monaco
Skype: fabrice.pipart
Tel. +377 97 98 21 04 (direct)
Fax. +377 97 70 88 07
_______________________________________________
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