Mailing Lists: Apple Mailing Lists

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

Re: Archiving QTMovie attributes



QTKit does seem to specify the interfaces for such a thing in their NSCoder Additions category:

http://developer.apple.com/documentation/QuickTime/Reference/ QTCocoaObjCKit/Classes/NSCoderAdditions.html

Perhaps you need to make a category of NSKeyedArchiver which properly implements -encodeQTTime:forKey: and
-encodeQTTimeRange:forKey: ? I'd think this could be done by archiving the times as a dictionary of NSNumbers or something.



-Henry

On Oct 26, 2005, at 8:25 PM, Timothy Schmitz wrote:

Has anyone else had a problem trying to encode the whole dictionary
returned by QTMovie movieAttributes: using encodeObject:forKey:? When
I try, I get the following exception:

[NSKeyedArchiver encodeValueOfObjCType:at:]: this archiver cannot encode structs

My guess is that the encoder for NSDictionary doesn't know what to do
with QTTime objects. I can't seem to think of a way around the problem
aside from encoding each attribute individually, which I'd really
rather not do.

Can anyone help?

Tim Schmitz
 _______________________________________________
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


_______________________________________________ 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
References: 
 >Archiving QTMovie attributes (From: Timothy Schmitz <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.