Objective-C Language NSTextAttachment


  1. NSTextAttachment *attachmentName = [[NSTextAttachment alloc] init];


NSTextAttachment objects are used by the NSAttributedString class cluster as the values for attachment attributes. 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.