Instance Property


The message that the user selected in the conversation transcript.


@property(nonatomic, readonly) MSMessage *selectedMessage;


If the user selected one of your extension’s messages in the conversation transcript, this property is set to the selected message object. Otherwise, it is set to nil.

If your extension was launched because the user selected the message, then this property is set when the extension is launched.

If the user selects a message while your extension is running, the system takes the following steps:

  1. Invokes your MSMessagesAppViewController object’s willSelectMessage:conversation: method.

  2. Updates the conversation’s selectedMessage property.

  3. Invokes your MSMessagesAppViewController object’s didSelectMessage:conversation: method.

Override willSelectMessage:conversation: or didSelectMessage:conversation: to handle changes to the selected message while your extension is active.