Instance Method

version(forClassName:)

This method is present for historical reasons and is not used with keyed archivers.

Declaration

func version(forClassName className: String) -> Int

Return Value

The version in effect for the class named className or NSNotFound if no class named className exists.

Discussion

The version number does apply not to NSKeyedArchiver/NSKeyedUnarchiver. A keyed archiver does not encode class version numbers.

See Also

Getting Version Information

var systemVersion: UInt32

The system version in effect for the archive.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software