Mac Developer Library

Developer

AppKit Framework Reference NSCoder AppKit Additions Reference

Options
Deployment Target:

On This Page

NSCoder

This category adds a single method to the Foundation framework’s NSCoder class. This method, decodeNXColor, is used to convert archived NXColor structures into NSColor objects. More...

Inheritance


Not Applicable

Conforms To


Not Applicable

Import Statement


Not Applicable @import AppKit;

Availability


Available in OS X v10.0 and later.
  • Decodes a color structure from NEXTSTEP Release 3 or earlier and returns an NSColor object.

    Declaration

    Objective-C

    - (NSColor *)decodeNXColor

    Return Value

    An autoreleased NSColor object. Returns nil if the archived color is invalid.

    Discussion

    This method does not have a matching method for encoding an NXColor structure. Encode an NSColor object instead.

    Import Statement

    Availability

    Available in OS X v10.0 and later.

    Deprecated in OS X v10.9.