Instance Method

didSelectMessage:conversation:

Invoked in response to the user selecting a message object in the transcript, after the system updates the conversation’s selectedMessage property.

Declaration

- (void)didSelectMessage:(MSMessage *)message conversation:(MSConversation *)conversation;

Parameters

message

The message selected by the user.

conversation

The current conversation.

Discussion

This method is called when the user selects one of your app’s message objects in the transcript while your extension is active. Both the message parameter and the conversation object’s selectedMessage property contain the message selected by the user.

If you need to access the previously selected message, override the willSelectMessage:conversation: method instead.

This method is called when a new message arrives while your extension is active. You receive notifications about messages sent using your extension only. You cannot interact with messages from other extensions.

The system does not call this method if the controller’s presentationStyle property is MSMessagesAppPresentationStyleTranscript, or if its presentationContext property is MSMessagesAppPresentationContextMedia.

See Also

Tracking Messages

- willSelectMessage:conversation:

Invoked in response to the user selecting a message object in the transcript, before the system updates the conversation’s selectedMessage property.

- didReceiveMessage:conversation:

Invoked when the iMessage app receives a new message object.

- didStartSendingMessage:conversation:

Invoked when the user sends a message object.

- didCancelSendingMessage:conversation:

Invoked when the user deletes a message object from the Messages app’s input field.