Skip to content

AppDelegate.swift — Plugin "com.apple.share.Mail.compose" Invalidation Error #1

@thrifus

Description

@thrifus

Issue found with code block:

func AboutShellbar(sender: AnyObject) {
    let AboutAlert: NSAlert = NSAlert()
    AboutAlert.messageText = "..."
    AboutAlert.informativeText = "..."
    AboutAlert.addButtonWithTitle("Close")
    AboutAlert.addButtonWithTitle("Contact Me")
    if AboutAlert.runModal() == NSAlertSecondButtonReturn {
        let os = NSProcessInfo().operatingSystemVersion
        let OSTYPE = String("OS X \(os.majorVersion).\(os.minorVersion).\(os.patchVersion)")
        print(OSTYPE)

        let body = "..."
        let shareItems = [body] as NSArray
        let service = NSSharingService(named: NSSharingServiceNameComposeEmail)
        service?.recipients = ["admin@thrifus.co"]
        let subject = "..."
        service?.subject = subject
        service?.performWithItems(shareItems as [AnyObject])
    }
}

Output from Debug Console

Shellbar[85355:2665291] plugin com.apple.share.Mail.compose invalidated

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions