Next Page > Hide TOC

NSCoder QTKit Additions Reference

Inherits from
Conforms to
Framework
/System/Library/Frameworks/QTKit.framework
Availability
Available in Mac OS X v10.4 and later.
Declared in
QTTime.h
QTTimeRange.h

Overview

The QuickTime Kit supports categories on the NSCoder class that allow you to encode and decode structures of type QTTime and QTTimeRange, in addition to structures of type SMPTETime in Mac OS X v10.5.

Tasks

Encoding Time and Time Ranges

Decoding Time and Time Ranges

Instance Methods

decodeQTTimeForKey:

Decodes a QTTime structure.

- (QTTime)decodeQTTimeForKey:(NSString *)key

Discussion

This method matches an encode QTTime message used during encoding.

Availability
Declared In
QTTime.h

decodeQTTimeRangeForKey:

Decodes a QTTimeRange structure.

- (QTTimeRange)decodeQTTimeRangeForKey:(NSString *)key

Discussion

This method matches an encode QTTimeRange message used during encoding.

Availability
Declared In
QTTimeRange.h

decodeSMPTETimeForKey:

Decodes an SMPTETime structure encoded by the receiver for the given key.

- (SMPTETime)decodeSMPTETimeForKey:(NSString *)key

Availability
Declared In
QTTime.h

encodeQTTime:forKey:

Encodes a QTTime structure.

- (void)encodeQTTime:(QTTime)timeforKey :(NSString *)key

Discussion

This method must be matched by a decode QTTime message.

Availability
Declared In
QTTime.h

encodeQTTimeRange:forKey:

Encodes a QTTimeRange structure range.

- (void)encodeQTTimeRange:(QTTimeRange)rangeforKey :(NSString *)key

Discussion

This method must be matched by a decode QTTimeRange message.

Availability
Declared In
QTTimeRange.h

encodeSMPTETime:forKey:

Encodes an SMPTETime for the given key.

- (void)encodeSMPTETime:(SMPTETime)time forKey:(NSString *)key

Availability
Declared In
QTTime.h

Next Page > Hide TOC


© 2007 Apple Inc. All Rights Reserved. (Last updated: 2007-05-07)


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.