The methods in NSCoder Additions are definitely what need to be used,
but I still can't figure out how exactly to do it without invoking
them directly. For example, I want to call NSKeyedArchiver's
encodeObject:forKey: method with an object of type NSDictionary
(fetched from QTMovie movieAttribtues:). That NSDictionary object will
contain QTTime objects. How do I get NSKeyedArchiver to recognize them
as such and use the methods from NSCoder Additions?
TIm
On 10/26/05, Henry Mason <email@hidden> wrote:
> 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