Instance Method

didCancelSendingMessage:conversation:

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

Declaration

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

Parameters

message

The deleted message object.

conversation

The conversation that the user is currently viewing in the Messages app.

Discussion

Override this method to respond when a message is canceled. This method is called if you use the conversation’s insertMessage:completionHandler: method to add an MSMessage object to the Messages app’s input field, and the user subsequently deletes the message object.

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.

- didSelectMessage:conversation:

Invoked in response to the user selecting a message object in the transcript, after 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.