Yes but the problem is the following.
The user of my application can download on the internet the
compositions he wants and then import
the qc file with my application.
After that my application use the composition to render it.
But the composition on the internet are not all created with the new
editor and doesn't have the protocol
setted.
If I copy theses qc file in the folder of the QCCompositionRepository
they don't have any protocol
and I can't filter the QCCompositions correctly.
My idea was to set the protocol and save the file before adding it to
the repository.
But if there is no solution with code, I can't use the repository and
copy the qc file
in another folder.
Thanks
Christophe
Le 31 oct. 07 à 21:33, Troy Koelling a écrit :
There isn't an API for this, you must go through the editor.
1.) Open a composition in the Quartz Composer application
2.) Choose Editor>Protocol Conformance
3.) Select which protocols you want.
4.) Save.
On Oct 31, 2007, at 12:17 PM, Christophe Ducommun wrote:
I try to copy some compositions in the Library/Composition folder
in the user folder in order to
use the QCCompositionRepository class.
I don't have found any method to add a composition to the
repository, but in the doc, it says
that the qc files are in the Library/Compositions folder at the
root or in the user folder path.
I try to copy some olds qc files in this folder, but they don't
have a protocol conformance because
they have been added in Leopard.
I want to update from my app the protocol conformance attribute of
the qc file, but I don't have found
any method to save the QC file after editing the attributes.
How can I do that ?
I want to :
1) Create a QCComposition object from a qc file
2) Editing the protocol conformance attribute of the QCComposition
object
3) Save the QC file
4) Copy the QC file to the /Library/Composition folder in the home
user folder.
Thanks
Christophe
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list ([email protected]
)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/tkoelling%40apple.com
This email sent to [EMAIL PROTECTED]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]