Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

QTKit: Export settings as XML



Hello,

We're using QTKit in our Cocoa project and we need to save various QuickTime export settings into files to be reused later in batch exports without any GUI. QTMovie class has the following method:
-(BOOL)writeToFile:(NSString *)fileName withAttributes:(NSDictionary *)attributes


QTMovieExportSettings key can be passed to this method in attributes dict with QTAtomContainer (as NSData) as value.

My question is: is there any way to serialize & deserialize export settings (basically QTAtomContainer) as XML / plist in QTKit on Mac OS X? I'm aware of the possibility to get settings from Quicktime with MovieExportGetSettingsAsAtomContainer() function and then to dump the binary data into file, but I'm interested in human-readable settings format and not the binary dump.

I've found some example code from TN2120 ( http://developer.apple.com/ technotes/tn2006/tn2120.html ) where export settings are saved as XML, but the code is for Windows ActiveX component. Can this functionality really be Windows-only (perhaps as functionality of ActiveX support libraries), or is there equivalent methods on OS X as well? At least QTKit documentation doesn't mention it.

- Nikita

_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-api/email@hidden

This email sent to 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.