MBS Xojo Developer Conference and Training
Join us from 3rd to 6th May 2017 in Berlin, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

NSTextAttachmentMBS class

class, Cocoa, MBS CocoaBase Plugin (NSAttributedString), class NSTextAttachmentMBS,
Plugin version: 15.0, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

Function: An attachment to a text.
Notes:
NSTextAttachment objects are used by the NSAttributedString class cluster as the values for attachment attributes (stored in the attributed string under the key named NSAttachmentAttributeName). The objects you create with this class are referred to as text attachment objects, or when no confusion will result, as text attachments or merely attachments.

A text attachment object contains an NSFileWrapper in NSFileWrapper Class Reference object, which in turn holds the contents of the attached file. It also uses a cell object conforming to the NSTextAttachmentCell in NSTextAttachmentCell Protocol Reference protocol to draw and handle mouse events. Most of the behavior of a text attachment is relegated to the file wrapper and the attachment cell. See the corresponding class and protocol specifications for more information.

See the NSAttributedString in NSAttributedString Class Reference and NSTextView in NSTextView Class Reference class specifications for general information on text attachments.

see also
https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSTextAttachment_Class/index.html#//apple_ref/occ/instm/NSTextAttachment/initWithFileWrapper:

This class has no sub classes.

Some methods using this class:


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


NSTaskMBS   -   NSTextContainerMBS




Links
MBS Xojo Plugins