Platforms to show: All Mac Windows Linux Cross-Platform
Back to CNPostalAddressFormatterMBS class.
CNPostalAddressFormatterMBS.attributedStringFromPostalAddress(postalAddress as CNPostalAddressMBS, DefaultAttributes as Dictionary = nil) as NSAttributedStringMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Contacts | MBS Mac64bit Plugin | 16.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
postalAddress: The postal address to format.
DefaultAttributes: The default attributes to use. To learn more, see NSFormatter.
Returns the formatted postal address as an attributed string.
This method behaves similarly to stringFromPostalAddress, except that it returns an attributed string. It includes the attribute key CNPostalAddressPropertyAttribute, whose attribute values are postal address property keys, such as CNPostalAddressStreetKey. This identifies the postal address components in the formatted postal address. Also includes the attribute key CNPostalAddressLocalizedPropertyNameAttribute whose attribute values are the localized strings for the postal address property keys.
See also:
CNPostalAddressFormatterMBS.Constructor
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Contacts | MBS Mac64bit Plugin | 16.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
CNPostalAddressFormatterMBS.stringFromPostalAddress(postalAddress as CNPostalAddressMBS) as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Contacts | MBS Mac64bit Plugin | 16.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
See also:
The items on this page are in the following plugins: MBS Mac64bit Plugin.