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 |
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 |
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 |
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 |
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.