IMServicePlugInMessage Class Reference
| Inherits from | |
| Conforms to | |
| Framework | /System/Library/Frameworks/IMServicePlugin.framework |
| Availability | Available in OS X v10.7 and later. |
| Declared in | IMServicePlugInMessage.h IMServicePlugInTypes.h |
Tasks
Creating Messages
-
contentproperty -
guidproperty -
– initWithContent: -
+ servicePlugInMessageWithContent:
Properties
content
The content of the message.
Availability
- Available in OS X v10.7 and later.
Declared In
IMServicePlugInMessage.hguid
The unique identifier of the message. (read-only)
Availability
- Available in OS X v10.7 and later.
Declared In
IMServicePlugInMessage.hClass Methods
servicePlugInMessageWithContent:
Creates and returns a message with the specified content.
Parameters
- content
The content for the message.
Return Value
An IMServicePlugInMessage object with the specified content.
Availability
- Available in OS X v10.7 and later.
Declared In
IMServicePlugInMessage.hInstance Methods
initWithContent:
Initializes a newly created message with the specified content.
Parameters
- content
The content for the message.
Return Value
The newly initialized message.
Availability
- Available in OS X v10.7 and later.
Declared In
IMServicePlugInMessage.hConstants
Rich-Text Message Attributes
Text attributes for rich-text messages.
NSString * const IMAttributeFontFamily; NSString * const IMAttributeFontSize; NSString * const IMAttributeItalic; NSString * const IMAttributeBold; NSString * const IMAttributeUnderline; NSString * const IMAttributeStrikethrough; NSString * const IMAttributeLink; NSString * const IMAttributePreformatted; NSString * const IMAttributeBaseWritingDirection; NSString * const IMAttributeForegroundColor; NSString * const IMAttributeBackgroundColor; NSString * const IMAttributeMessageBackgroundColor;
Constants
IMAttributeFontFamilyThe font family. (
NSString)Available in OS X v10.7 and later.
Declared in
IMServicePlugInTypes.h.IMAttributeFontSizeThe font size. (
NSNumber)Available in OS X v10.7 and later.
Declared in
IMServicePlugInTypes.h.IMAttributeItalicItalic style. (Boolean value as an
NSNumber)Available in OS X v10.7 and later.
Declared in
IMServicePlugInTypes.h.IMAttributeBoldBold style. (Boolean value as an
NSNumber)Available in OS X v10.7 and later.
Declared in
IMServicePlugInTypes.h.IMAttributeUnderlineUnderlined style. (Boolean value as an
NSNumber)Available in OS X v10.7 and later.
Declared in
IMServicePlugInTypes.h.IMAttributeStrikethroughStruck-through style. (Boolean value as an
NSNumber)Available in OS X v10.7 and later.
Declared in
IMServicePlugInTypes.h.IMAttributeLinkThe URL to link to. (
NSURL)Available in OS X v10.7 and later.
Declared in
IMServicePlugInTypes.h.IMAttributePreformattedPreformatted text. (Boolean value as an
NSNumber)If the text is already formatted, the instant messaging agent does not take any action for text that appears to be an emoticon or a URL, or perform any other data detection.
Available in OS X v10.7 and later.
Declared in
IMServicePlugInTypes.h.IMAttributeBaseWritingDirectionThe base writing direction. (
NSNumber)Use
1to indicate right-to-left text and0to indicate left-to-right text.Available in OS X v10.7 and later.
Declared in
IMServicePlugInTypes.h.IMAttributeForegroundColorThe foreground color of the text. (Hexadecimal color description as an
NSString)For example,
#FF0033,#555, and#78a9bcare valid values.Available in OS X v10.7 and later.
Declared in
IMServicePlugInTypes.h.IMAttributeBackgroundColorThe background color behind the text. (Hexadecimal color description as an
NSString)For example,
#FF0033,#555, and#78a9bcare valid values.Available in OS X v10.7 and later.
Declared in
IMServicePlugInTypes.h.IMAttributeMessageBackgroundColorThe background color of the box or bubble containing the text. (Hexadecimal color description as an
NSString)For example,
#FF0033,#555, and#78a9bcare valid values.Available in OS X v10.7 and later.
Declared in
IMServicePlugInTypes.h.
Discussion
These attributes mirror the text attributes provided by the AppKit framework for NSAttributedString objects. They are provided so that instant messaging plug-ins don’t have to link against that entire framework to get the attributed string constants.
© 2011 Apple Inc. All Rights Reserved. (Last updated: 2011-03-28)