Mac Developer Library

Developer

QuartzCore Framework Reference NSValue Core Animation Additions

Options
Deployment Target:

On This Page
Language:

NSValue

Inheritance


Not Applicable

Conforms To


Not Applicable

Import Statement


Swift

import QuartzCore

Objective-C

@import QuartzCore;

Availability


Available in OS X v10.5 and later.

Core Animation adds two methods to the Foundation framework’s NSValue class to support CATransform3D structure values.

  • Creates and returns an NSValue object that contains a given CATransform3D structure.

    Declaration

    Swift

    init!(CATransform3D aTransform: CATransform3D) -> NSValue

    Objective-C

    + (NSValue *)valueWithCATransform3D:(CATransform3D)aTransform

    Parameters

    aTransform

    The value for the new object.

    Return Value

    A new NSValue object that contains the value of aTransform.

    Import Statement

    Objective-C

    @import QuartzCore;

    Swift

    import QuartzCore

    Availability

    Available in OS X v10.5 and later.

  • Returns an CATransform3D structure representation of the receiver.

    Declaration

    Swift

    var CATransform3DValue: CATransform3D { get }

    Objective-C

    @property(readonly) CATransform3D CATransform3DValue

    Return Value

    An CATransform3D structure representation of the receiver.

    Import Statement

    Objective-C

    @import QuartzCore;

    Swift

    import QuartzCore

    Availability

    Available in OS X v10.5 and later.