[View]  [Edit]  [Lock]  [References]  [Attachments]  [History]  [Home]  [Changes]  [Search]  [Help] 

api[apple,MessageUI] index

UINavigationController subclass: #MFMailComposeViewController category: #MessageUI.
UINavigationController subclass: #MFMessageComposeViewController category: #MessageUI.
!

MFMessageComposeViewController buildPool: #MFMessageComposeResult with: #(
    0 #MessageComposeResultCancelled
    #MessageComposeResultSent
    #MessageComposeResultFailed
)!

#(	canSendText
	canSendSubject
	canSendAttachments
) do: [:selector|
	MFMessageComposeViewController class
		implement: selector
		comment: 'Returns true if the feature is enabled'
		as: '^Boolean @ (self nativeClass basicAt: #',selector,')'
		category: #aviability
]!

! MFMessageComposeViewController class methodsFor: #aviability !
isSupportedAttachmentUTI: uti
	^Boolean @ (self nativeClass isSupportedAttachmentUTI: uti)! !

MFMessageComposeViewController buildFunctions:#(
	disableUserAttachments
	#(#addAttachmentURL:withAlternateFilename: #(#(attachmentURL handle) alternateFilename) #Boolean)
	#(#addAttachmentData:typeIdentifier:filename: #(#(attachmentData handle) uti filename) #Boolean)
)!

MFMessageComposeViewController buildTypedAccessors:#(
	#(messageComposeDelegate #NSObject)
)!

MFMessageComposeViewController buildAccessors:#(
	recipients body subject
)!

MFMessageComposeViewController buildGetters:#(
	attachments
)!

MFMailComposeViewController buildPool: #MFMailComposeResult with: #(
    0 #MFMailComposeResultCancelled
    #MFMailComposeResultSaved
    #MFMailComposeResultSent
    #MFMailComposeResultFailed
)!

MFMailComposeViewController buildPool: #MFMailComposeErrorCode with: #(
    0 #MFMailComposeErrorCodeSaveFailed,
    #MFMailComposeErrorCodeSendFailed
)!

#(	canSendMail
) do: [:selector|
	MFMailComposeViewController class
		implement: selector
		comment: 'Returns true if the feature is enabled'
		as: '^Boolean @ (self nativeClass basicAt: #',selector,')'
		category: #aviability
]!

MFMailComposeViewController buildFunctions:#(
	#(#setSubject: #(subject))
	#(#setToRecipients: #(toRecipients))
	#(#setCcRecipients: #(ccRecipients))
	#(#setBccRecipients: #(bccRecipients))
	#(#setMessageBody:isHTML: #(body aBoolean))
	#(#addAttachmentData:mimeType:fileName: #(#(attachment handle) mimeType fileName))
)!

MFMailComposeViewController buildTypedAccessors:#(
	#(mailComposeDelegate #NSObject)
)!