Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

NSTextAttachmentMBS.Constructor(fileWrapper as NSFileWrapperMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa MBS MacBase Plugin 15.0 Yes No No Yes, macOS only No
Function: Initializes a newly allocated NSTextAttachment object to contain the given file wrapper.
Example:
dim content as MemoryBlock = "Hello World"
dim f as NSFileWrapperMBS = NSFileWrapperMBS.initRegularFileWithContents(content)
f.filename = "HelloWorld.txt"

dim a as new NSTextAttachmentMBS(f)

Break // inspect in debugger
Notes: If fileWrapper contains an image file that the receiver can interpret as an NSImage object, sets the attachment cell’s image to the NSImage rather than to the icon of fileWrapper.

See also:

Feedback, Comments & Corrections

NSTextAttachmentMBS.Constructor(image as NSImageMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa MBS MacBase Plugin 15.1 Yes No No Yes, macOS only No
Function: Initializes a newly allocated NSTextAttachment object with a cell and given image.

See also:

Feedback, Comments & Corrections

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




Links
MBS Xojo Plugins