Next Page > Hide TOC

NSValue 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 in the Foundation framework’s NSValue class that allow you to get QTTime and QTTimeRange structures as objects of type NSValue. In Mac OS X v10.5, QTKit defines extra operations on the SMPTETime type. SMPTETime is defined in CoreAudio/CoreAudioTypes.h.

Tasks

Wrapping Time and Time Range Structures

Class Methods

valueWithQTTime:

Creates an NSValue object that wraps the specified QTTime structure.

+ (NSValue *)valueWithQTTime:(QTTime)time

Availability
Related Sample Code
Declared In
QTTime.h

valueWithQTTimeRange:

Creates an NSValue object that wraps the specified QTTimeRange structure.

+ (NSValue *)valueWithQTTimeRange:(QTTimeRange)range

Availability
Declared In
QTTimeRange.h

valueWithSMPTETime:

Returns a new NSValue object containing an SMPTETime.

+ (NSValue *)valueWithSMPTETime:(SMPTETime)time

Availability
Declared In
QTTime.h

Instance Methods

QTTimeRangeValue

Returns a QTTimeRange structure that contains the range in an NSValue object.

- (QTTimeRange)QTTimeRangeValue

Availability
Declared In
QTTimeRange.h

QTTimeValue

Returns a QTTime structure that contains the time in an NSValue object.

- (QTTime)QTTimeValue

Availability
Related Sample Code
Declared In
QTTime.h

SMPTETimeValue

Returns a SMPTETime structure contained in an NSValue.

- (SMPTETime)SMPTETimeValue

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.