Platforms to show: All Mac Windows Linux Cross-Platform
Back to NSAttributedStringMBS class.
NSAttributedStringMBS.attributedStringWithAdaptiveImageGlyph(adaptiveImageGlyph as NSAdaptiveImageGlyphMBS, withAttributes as dictionary) as NSAttributedStringMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | Cocoa Text | MBS MacBase Plugin | 25.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
adaptiveImageGlyph: The adaptive image glyph to place in the string. Typically, you get this type from the text input system.
attributes: The attributes to apply to the adaptive image glyph. Specify an empty dictionary to create the string without any extra attributes.
NSAttributedStringMBS.attributedStringWithAttachment(attachment as NSTextAttachmentMBS) as NSAttributedStringMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | Cocoa Text | MBS MacBase Plugin | 15.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
This is a convenience method for creating an attributed string containing an attachment using NSAttachmentCharacter as the base character.
NSAttributedStringMBS.attributedStringWithAttributedString(text as NSAttributedStringMBS) as NSAttributedStringMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | Cocoa Text | MBS MacBase Plugin | 11.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
NSAttributedStringMBS.attributedStringWithDocFormat(data as memoryblock) as NSAttributedStringMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | Cocoa Text | MBS MacBase Plugin | 11.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
documentAttributes: Optional dictionary to receive the attributes.
See also:
Some examples using this method:
NSAttributedStringMBS.attributedStringWithDocFormat(data as memoryblock, byref DocumentAttributes as dictionary) as NSAttributedStringMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | Cocoa Text | MBS MacBase Plugin | 12.0 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
documentAttributes: Optional dictionary to receive the attributes.
See also:
NSAttributedStringMBS.attributedStringWithHTML(data as memoryblock) as NSAttributedStringMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | Cocoa Text | MBS MacBase Plugin | 11.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
documentAttributes: Optional dictionary to receive the attributes.
See also:
- attributedStringWithHTML(data as memoryblock, BaseURL as string) as NSAttributedStringMBS
- attributedStringWithHTML(data as memoryblock, BaseURL as string, byref DocumentAttributes as dictionary) as NSAttributedStringMBS
- attributedStringWithHTML(data as memoryblock, byref DocumentAttributes as dictionary) as NSAttributedStringMBS
NSAttributedStringMBS.attributedStringWithHTML(data as memoryblock, BaseURL as string) as NSAttributedStringMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | Cocoa Text | MBS MacBase Plugin | 11.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
documentAttributes: Optional dictionary to receive the attributes.
See also:
- attributedStringWithHTML(data as memoryblock) as NSAttributedStringMBS
- attributedStringWithHTML(data as memoryblock, BaseURL as string, byref DocumentAttributes as dictionary) as NSAttributedStringMBS
- attributedStringWithHTML(data as memoryblock, byref DocumentAttributes as dictionary) as NSAttributedStringMBS
NSAttributedStringMBS.attributedStringWithHTML(data as memoryblock, BaseURL as string, byref DocumentAttributes as dictionary) as NSAttributedStringMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | Cocoa Text | MBS MacBase Plugin | 12.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
documentAttributes: Optional dictionary to receive the attributes.
See also:
NSAttributedStringMBS.attributedStringWithHTML(data as memoryblock, byref DocumentAttributes as dictionary) as NSAttributedStringMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | Cocoa Text | MBS MacBase Plugin | 12.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
documentAttributes: Optional dictionary to receive the attributes.
See also:
NSAttributedStringMBS.attributedStringWithHTMLOld(data as string) as NSAttributedStringMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | Cocoa Text | MBS MacBase Plugin | 11.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
With plugin version 9.4 the attributedStringWithHTML method uses the system function to parse html. The old plugin function is available with the name attributedStringWithHTMLOld.
NSAttributedStringMBS.attributedStringWithPath(file as folderitem) as NSAttributedStringMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | Cocoa Text | MBS MacBase Plugin | 11.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
documentAttributes: Optional dictionary to receive the attributes.
See also:
- attributedStringWithPath(file as folderitem, byref DocumentAttributes as dictionary) as NSAttributedStringMBS
- attributedStringWithPath(path as string) as NSAttributedStringMBS
- attributedStringWithPath(path as string, byref DocumentAttributes as dictionary) as NSAttributedStringMBS
Some examples using this method:
NSAttributedStringMBS.attributedStringWithPath(file as folderitem, byref DocumentAttributes as dictionary) as NSAttributedStringMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | Cocoa Text | MBS MacBase Plugin | 12.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
documentAttributes: Optional dictionary to receive the attributes.
See also:
NSAttributedStringMBS.attributedStringWithPath(path as string) as NSAttributedStringMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | Cocoa Text | MBS MacBase Plugin | 11.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
documentAttributes: Optional dictionary to receive the attributes.
See also:
NSAttributedStringMBS.attributedStringWithPath(path as string, byref DocumentAttributes as dictionary) as NSAttributedStringMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | Cocoa Text | MBS MacBase Plugin | 12.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
documentAttributes: Optional dictionary to receive the attributes.
See also:
NSAttributedStringMBS.attributedStringWithRTF(data as memoryblock) as NSAttributedStringMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | Cocoa Text | MBS MacBase Plugin | 11.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
documentAttributes: Optional dictionary to receive the attributes.
See also:
Some examples using this method:
NSAttributedStringMBS.attributedStringWithRTF(data as memoryblock, byref DocumentAttributes as dictionary) as NSAttributedStringMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | Cocoa Text | MBS MacBase Plugin | 12.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
documentAttributes: Optional dictionary to receive the attributes.
See also:
NSAttributedStringMBS.attributedStringWithRTFD(data as memoryblock) as NSAttributedStringMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | Cocoa Text | MBS MacBase Plugin | 11.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
documentAttributes: Optional dictionary to receive the attributes.
See also:
NSAttributedStringMBS.attributedStringWithRTFD(data as memoryblock, byref DocumentAttributes as dictionary) as NSAttributedStringMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | Cocoa Text | MBS MacBase Plugin | 12.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
documentAttributes: Optional dictionary to receive the attributes.
See also:
NSAttributedStringMBS.attributedStringWithString(text as string) as NSAttributedStringMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | Cocoa Text | MBS MacBase Plugin | 11.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
documentAttributes: Optional dictionary to receive the attributes.
See also:
Some examples using this method:
NSAttributedStringMBS.attributedStringWithString(text as string, withAttributes as dictionary) as NSAttributedStringMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | Cocoa Text | MBS MacBase Plugin | 12.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
documentAttributes: Optional dictionary to receive the attributes.
See also:
NSAttributedStringMBS.attributedStringWithURL(file as folderitem) as NSAttributedStringMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | Cocoa Text | MBS MacBase Plugin | 11.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
documentAttributes: Optional dictionary to receive the attributes.
See also:
NSAttributedStringMBS.attributedStringWithURL(file as folderitem, byref DocumentAttributes as dictionary) as NSAttributedStringMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | Cocoa Text | MBS MacBase Plugin | 12.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
documentAttributes: Optional dictionary to receive the attributes.
See also:
NSAttributedStringMBS.attributedStringWithURL(url as string) as NSAttributedStringMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | Cocoa Text | MBS MacBase Plugin | 11.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
documentAttributes: Optional dictionary to receive the attributes.
See also:
NSAttributedStringMBS.attributedStringWithURL(url as string, byref DocumentAttributes as dictionary) as NSAttributedStringMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | Cocoa Text | MBS MacBase Plugin | 12.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
documentAttributes: Optional dictionary to receive the attributes.
See also:
The items on this page are in the following plugins: MBS MacBase Plugin.