|
|
@ -759,15 +759,11 @@ class ParentPanelController: NSWindowController { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@IBAction func shareAction(_ sender: NSButton) { |
|
|
|
|
|
|
|
let promotionText = "Keep track of your friends and colleagues in different timezones using Clocker: appstore.com/mac/clockermenubarworldclock" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
guard let url = URL(string: "https://goo.gl/xyLA4j") else { |
|
|
|
|
|
|
|
assertionFailure("Data was unexpectedly nil") |
|
|
|
|
|
|
|
return |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let servicePicker = NSSharingServicePicker(items: [promotionText, url]) |
|
|
|
@IBAction func shareAction(_ sender: NSButton) { |
|
|
|
|
|
|
|
let copyAllTimes = retrieveAllTimes() |
|
|
|
|
|
|
|
let servicePicker = NSSharingServicePicker(items: [copyAllTimes]) |
|
|
|
servicePicker.delegate = self |
|
|
|
servicePicker.delegate = self |
|
|
|
|
|
|
|
|
|
|
|
servicePicker.show(relativeTo: sender.bounds, |
|
|
|
servicePicker.show(relativeTo: sender.bounds, |
|
|
|