NSCoder AppKit Additions Reference

Inherits from
Framework
/System/Library/Frameworks/AppKit.framework
Availability
Available in OS X v10.0 and later.
Companion guide
Declared in
NSColor.h

Overview

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.

NXColor, a type that dates from pre-OpenStep versions of NEXTSTEP, was a struct. Its replacement, NSColor, is a class. The difficulties of converting from a struct to a class require a special method like decodeNXColor.

The decodeNXColor method becomes part of the NSCoder class only for applications that use the Application Kit.

Tasks

Decoding NXColor Structures