FCP XML decoding cdata
FCP XML decoding cdata
- Subject: FCP XML decoding cdata
- From: Eberhard Ammelt <email@hidden>
- Date: Wed, 21 Oct 2009 19:30:26 +0200
Hello,
I'm trying to decode the xml cdata from a custom parameter of my FxPlug effect. This parameter saves its data as dictionary. I'm using FCP 7.0 and the FCP xml version being used is 4.0.
I'm doing the following to get back the dictionary data, and I think "decodedData" should already be the dictionary data as saved by the custom parameter. Strangely, it turns out that "decodedData" is still of type NSData. Only, when I feed this data into another archiver, the archiver returns the wanted dictionary ("decodedData2").
NSData *dstData = [XMLProcessor uudecode: cDataFromXML];
NSKeyedUnarchiver* unarchiver = [[[NSKeyedUnarchiver alloc] initForReadingWithData: dstData] autorelease]; id decodedData = [[unarchiver decodeObject] retain];
unarchiver = [[[NSKeyedUnarchiver alloc] initForReadingWithData: decodedData] autorelease]; id decodedData2 = [unarchiver decodeObject];
I wonder if I'm somehow wrong and if this approach is correct and reliable?
Regards, Eberhard Ammelt - Pixlock |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Pro-apps-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden