Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSNetServiceMBS class.

NSNetServiceMBS.dataFromTXTRecordDictionary(data as Dictionary) as Memoryblock

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Networking MBS MacFrameworks Plugin 21.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns an Memoryblock object representing a TXT record formed from a given dictionary.

Data: A dictionary containing a TXT record.

Returns a Memoryblock representing TXT data formed from txtDictionary. Fails an assertion if data cannot be represented as a MemoryBlock.

NSNetServiceMBS.dictionaryFromTXTRecordData(data as Memoryblock) as Dictionary

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Networking MBS MacFrameworks Plugin 21.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns a dictionary representing a TXT record given as a Memoryblock.

Data: A data object encoding a TXT record.

Returns a dictionary representing txtData. The dictionary’s keys are strings. The values associated with all the dictionary’s keys are Memoryblcoks that encapsulate strings or data.
Fails an assertion if txtData cannot be represented as an Dictionary object.

NSNetServiceMBS.NSNetServicesErrorCode as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Networking MBS MacFrameworks Plugin 21.1 ✅ Yes ❌ No ❌ No ✅ Yes All
This key identifies the error that occurred during the most recent operation.

Some examples using this method:

NSNetServiceMBS.NSNetServicesErrorDomain as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Networking MBS MacFrameworks Plugin 21.1 ✅ Yes ❌ No ❌ No ✅ Yes All
This key identifies the originator of the error, which is either the NSNetService object or the mach network layer.

For most errors, you should not need the value provided by this key.

Some examples using this method:

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


The biggest plugin in space...