I'm intrigued by the idea of creating a
preset-management plugin. I've been working up to
creating a few of my own custom QC objects myself.
Long way to go though, as I've only just started my
'Beginning MacOS X Programming' book ;)
I'm not sure how it would be possible to save presets
with the composition, however, unless they can somehow
be written on-the-fly into the file as
meta-information. The ideal might be to be able to
write presets into an XML file in
~/Library/Preferences.

You can have your plugins store data inline with the composition, no separate files necessary.

Create a new Standard Apple Plugin -> QCPlugin with Internal Settings and UI

then, look at these methods:
+ (NSArray*) plugInKeys
- (id) serializedValueForKey:(NSString*)key
- (void) setSerializedValue:(id)serializedValue forKey:(NSString*)key

These are what you need to store internal settings (presets) without needing multiple files and all that stuff.

--
[ christopher wright ]
[EMAIL PROTECTED]
http://kineme.net/

_______________________________________________
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]

Reply via email to