Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSCoderMBS class.

NSCoderMBS.allowsKeyedCoding as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 11.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns a Boolean value that indicates whether the receiver supports keyed coding of objects.

The default implementation returns false. Concrete subclasses that support keyed coding, such as NSKeyedArchiver, need to override this method to return true.

Some examples using this method:

NSCoderMBS.Constructor   Private

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 13.1 ✅ Yes ❌ No ❌ No ✅ Yes All
The private constructor.

NSCoderMBS.containsValueForKey(key as string) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 11.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns a Boolean value that indicates whether an encoded value is available for a string.

Some examples using this method:

NSCoderMBS.decodeBool(key as string) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 11.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Decodes and returns a boolean value that was previously encoded with encodeBool and associated with the string key.

NSCoderMBS.decodeBytes(key as string) as MemoryBlock

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 11.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Decodes a buffer of data whose types are unspecified.

NSCoderMBS.decodeCFObjectMBS(key as string) as Variant

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Decodes CFObject object.

This is a special convenience methods to decode CF* classes which are bridged to Cocoa objects.
Like CFDictionary, CFURL, CFData, CFString, CFNumber, CFArray and a few others.

NSCoderMBS.decodeDictionary(key as string) as Dictionary

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 11.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Decodes a dictionary.

NSCoderMBS.decodeDouble(key as string) as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 11.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Decodes and returns a double value that was previously encoded with either encodeFloat or encodeDouble and associated with the string key.

NSCoderMBS.decodeFloat(key as string) as single

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 11.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Decodes and returns a float value that was previously encoded with encodeFloat or encodeDouble and associated with the string key.

NSCoderMBS.decodeInt32(key as string) as Int32

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 11.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Decodes and returns a 32-bit integer value that was previously encoded with encodeInt, encodeInteger, encodeInt32, or encodeInt64 and associated with the string key.

If the encoded integer does not fit into a 32-bit integer, the method raises an NSRangeException.

NSCoderMBS.decodeInt64(key as string) as Int64

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 11.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Decodes and returns a 64-bit integer value that was previously encoded with encodeInt, encodeInteger, encodeInt32, or encodeInt64 and associated with the string key.

NSCoderMBS.decodeNSURLFile(key as string) as folderitem

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Decodes an NSURL and returns folderitem.

Some examples using this method:

NSCoderMBS.decodeNSURLString(key as string) as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Decodes an NSURL and returns string.

NSCoderMBS.decodePoint(key as string) as NSPointMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 11.3 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Decodes a point object.

NSCoderMBS.decodeRect(key as string) as NSRectMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 11.3 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Decodes a rectangle.

NSCoderMBS.decodeSize(key as string) as NSSizeMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 11.3 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Decodes a size object.

NSCoderMBS.decodeString(key as string) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 11.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Decodes a string.

Some examples using this method:

NSCoderMBS.encodeBool(value as boolean, key as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 11.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Encodes value and associates it with the string key.

NSCoderMBS.encodeBytes(value as MemoryBlock, key as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 11.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Encodes a buffer of data whose types are unspecified.

NSCoderMBS.encodeCFObjectMBS(value as Variant, key as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Encodes a CFObject.

This is a special convenience methods to encode CF* classes which are bridged to Cocoa objects.
Like CFDictionary, CFURL, CFData, CFString, CFNumber, CFArray and a few others.

NSCoderMBS.encodeDictionary(value as Dictionary, key as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 11.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Encodes a dictionary.

Not all objects can be inside the dictionary.
Cocoa objects, string, booleans and numbers are okay.

NSCoderMBS.encodeDouble(value as Double, key as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 11.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Encodes value and associates it with the string key.

NSCoderMBS.encodeFloat(value as single, key as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 11.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Encodes value and associates it with the string key.

NSCoderMBS.encodeInt32(value as Int32, key as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 11.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Encodes the 32-bit integer value and associates it with the string key.

NSCoderMBS.encodeInt64(value as Int64, key as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 11.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Encodes the 64-bit integer value and associates it with the string key.

NSCoderMBS.encodeNSURLFile(value as folderitem, key as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Encodes a folderitem as NSURL.

Some examples using this method:

NSCoderMBS.encodeNSURLString(value as String, key as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Encodes a string with URL as NSURL object.

NSCoderMBS.encodePoint(value as NSPointMBS, key as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 11.3 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Encodes a point object.

NSCoderMBS.encodeRect(value as NSRectMBS, key as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 11.3 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Encodes a rectangle.

NSCoderMBS.encodeSize(value as NSSizeMBS, key as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 11.3 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Encodes a size object.

NSCoderMBS.encodeString(value as string, key as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 11.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Encodes a string.

Some examples using this method:

NSCoderMBS.systemVersion as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 11.2 ✅ Yes ❌ No ❌ No ✅ Yes All
During encoding, this method should return the system version currently in effect.

During decoding, this method should return the version that was in effect when the data was encoded.

By default, this method returns the current system version, which is appropriate for encoding but not for decoding. Subclasses that implement decoding must override this method to return the system version of the data being decoded.

The items on this page are in the following plugins: MBS MacBase Plugin.


The biggest plugin in space...