Platforms to show: All Mac Windows Linux Cross-Platform
Back to NSAttributedStringMBS class.
NSAttributedStringMBS.initWithAttributedString(text as NSAttributedStringMBS) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Text | MBS MacBase Plugin | 7.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Returns true on success.
NSAttributedStringMBS.initWithDocFormat(data as MemoryBlock) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Text | MBS MacBase Plugin | 7.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Returns true on success.
documentAttributes: Optional dictionary to receive the attributes.
See also:
NSAttributedStringMBS.initWithDocFormat(data as memoryblock, byref documentAttributes as dictionary) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Text | MBS MacBase Plugin | 12.0 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Returns true on success.
documentAttributes: Optional dictionary to receive the attributes.
See also:
NSAttributedStringMBS.initWithHTML(data as MemoryBlock) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Text | MBS MacBase Plugin | 7.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
documentAttributes: Optional dictionary to receive the attributes.
Returns true on success.
With plugin version 9.4 this uses the system function to parse html. The old plugin function is available with the name initWithHTMLOld.
On Mac OS X 10.6 the text encoding expected is ISO Latin 1 as far as I see.
See also:
- initWithHTML(data as MemoryBlock, BaseURL as string) as boolean
- initWithHTML(data as memoryblock, BaseURL as string, byref documentAttributes as dictionary) as boolean
- initWithHTML(data as memoryblock, byref documentAttributes as dictionary) as boolean
- initWithHTML(data as memoryblock, options as Dictionary, byref documentAttributes as dictionary) as boolean
NSAttributedStringMBS.initWithHTML(data as MemoryBlock, BaseURL as string) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Text | MBS MacBase Plugin | 7.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Returns true on success.
documentAttributes: Optional dictionary to receive the attributes.
See also:
- initWithHTML(data as MemoryBlock) as boolean
- initWithHTML(data as memoryblock, BaseURL as string, byref documentAttributes as dictionary) as boolean
- initWithHTML(data as memoryblock, byref documentAttributes as dictionary) as boolean
- initWithHTML(data as memoryblock, options as Dictionary, byref documentAttributes as dictionary) as boolean
NSAttributedStringMBS.initWithHTML(data as memoryblock, BaseURL as string, byref documentAttributes as dictionary) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Text | MBS MacBase Plugin | 12.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Returns true on success.
documentAttributes: Optional dictionary to receive the attributes.
See also:
- initWithHTML(data as MemoryBlock) as boolean
- initWithHTML(data as MemoryBlock, BaseURL as string) as boolean
- initWithHTML(data as memoryblock, byref documentAttributes as dictionary) as boolean
- initWithHTML(data as memoryblock, options as Dictionary, byref documentAttributes as dictionary) as boolean
NSAttributedStringMBS.initWithHTML(data as memoryblock, byref documentAttributes as dictionary) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Text | MBS MacBase Plugin | 12.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Returns true on success.
documentAttributes: Optional dictionary to receive the attributes.
With plugin version 9.4 this uses the system function to parse html. The old plugin function is available with the name initWithHTMLOld.
On Mac OS X 10.6 the text encoding expected is ISO Latin 1 as far as I see.
See also:
- initWithHTML(data as MemoryBlock) as boolean
- initWithHTML(data as MemoryBlock, BaseURL as string) as boolean
- initWithHTML(data as memoryblock, BaseURL as string, byref documentAttributes as dictionary) as boolean
- initWithHTML(data as memoryblock, options as Dictionary, byref documentAttributes as dictionary) as boolean
NSAttributedStringMBS.initWithHTML(data as memoryblock, options as Dictionary, byref documentAttributes as dictionary) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Text | MBS MacBase Plugin | 22.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Returns true on success.
options: Put in some options for parsing the document like NSCharacterEncodingDocumentOption or NSTextEncodingNameDocumentOption.
documentAttributes: Optional dictionary to receive the attributes.
See also:
NSAttributedStringMBS.initWithHTMLOld(data as string) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Text | MBS MacBase Plugin | 9.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
With plugin version 9.4 the initWithHTML method uses the system function to parse html. The old plugin function is available with the name initWithHTMLOld.
NSAttributedStringMBS.initWithPath(file as folderitem) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Text | MBS MacBase Plugin | 9.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
documentAttributes: Optional dictionary to receive the attributes.
Returns true on success.
See also:
NSAttributedStringMBS.initWithPath(file as folderitem, byref documentAttributes as dictionary) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Text | MBS MacBase Plugin | 12.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
documentAttributes: Optional dictionary to receive the attributes.
Returns true on success.
See also:
NSAttributedStringMBS.initWithPath(path as string) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Text | MBS MacBase Plugin | 9.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
documentAttributes: Optional dictionary to receive the attributes.
Returns true on success.
See also:
NSAttributedStringMBS.initWithPath(path as string, byref documentAttributes as dictionary) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Text | MBS MacBase Plugin | 12.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
documentAttributes: Optional dictionary to receive the attributes.
Returns true on success.
See also:
NSAttributedStringMBS.initWithRTF(data as MemoryBlock) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Text | MBS MacBase Plugin | 7.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
documentAttributes: Optional dictionary to receive the attributes.
Returns true on success.
See also:
Some examples using this method:
NSAttributedStringMBS.initWithRTF(data as memoryblock, byref documentAttributes as dictionary) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Text | MBS MacBase Plugin | 12.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
documentAttributes: Optional dictionary to receive the attributes.
Returns true on success.
See also:
NSAttributedStringMBS.initWithRTFD(data as MemoryBlock) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Text | MBS MacBase Plugin | 7.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
documentAttributes: Optional dictionary to receive the attributes.
Returns true on success.
See also:
NSAttributedStringMBS.initWithRTFD(data as memoryblock, byref documentAttributes as dictionary) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Text | MBS MacBase Plugin | 12.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
documentAttributes: Optional dictionary to receive the attributes.
Returns true on success.
See also:
NSAttributedStringMBS.initWithString(text as string) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Text | MBS MacBase Plugin | 7.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
documentAttributes: Optional dictionary to receive the attributes.
Returns true on success.
See also:
NSAttributedStringMBS.initWithString(text as string, withAttributes as Dictionary) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Text | MBS MacBase Plugin | 12.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
documentAttributes: Optional dictionary to receive the attributes.
Returns true on success.
See also:
NSAttributedStringMBS.initWithURL(file as folderitem) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Text | MBS MacBase Plugin | 7.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
documentAttributes: Optional dictionary to receive the attributes.
Returns true on success.
See also:
NSAttributedStringMBS.initWithURL(file as folderitem, byref documentAttributes as dictionary) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Text | MBS MacBase Plugin | 12.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
documentAttributes: Optional dictionary to receive the attributes.
Returns true on success.
See also:
NSAttributedStringMBS.initWithURL(url as string) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Text | MBS MacBase Plugin | 7.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
documentAttributes: Optional dictionary to receive the attributes.
Returns true on success.
See also:
NSAttributedStringMBS.initWithURL(url as string, byref documentAttributes as dictionary) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Text | MBS MacBase Plugin | 12.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
documentAttributes: Optional dictionary to receive the attributes.
Returns true on success.
See also:
NSAttributedStringMBS.isEqualToAttributedString(other as NSAttributedStringMBS) as Boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Text | MBS MacBase Plugin | 7.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Returns true if they are equal in content.
NSAttributedStringMBS.itemNumberInTextList(list as NSTextListMBS, location as Integer) as Integer
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Text | MBS MacBase Plugin | 18.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
list: The text list.
location: The location of the item.
Returns the index within the list.
The items on this page are in the following plugins: MBS MacBase Plugin.