Age | Commit message (Collapse) | Author |
|
|
|
|
|
Once the email is copied, the application has exhausted its usefulness
and should just quit as if it were a dialog.
|
|
Thanks to these references:
- https://stackoverflow.com/questions/5686958/set-string-to-pasteboard-copy-paste-in-cocoa-application/5687005#5687005
- https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/PasteboardGuide106/Articles/pbCopying.html
|
|
It starts with `mailto:`, so we remove that with a substring method
call.
|
|
Set correct event class and ID. I just picked a couple that seemed
reasomable but it didn't work to open the app based on the URL handler
because of the values I picked.
Use the exact example as a reference from before:
[[NSAppleEventManager sharedAppleEventManager]
setEventHandler:self
andSelector:@selector(handleURLEvent:withReplyEvent:)
forEventClass:kInternetEventClass
andEventID:kAEGetURL];
from Thomas Zoechling
(https://stackoverflow.com/users/100848/thomas-zoechling) on Stack
Overflow:
https://stackoverflow.com/questions/1991072/how-to-handle-with-a-default-url-scheme/1991162#1991162
|
|
Got this error:
Cannot synthesize weak property because the current deployment
target does not support weak references
Get rid of the property and replace it with an instance variable to get
rid of the error.
|
|
This untested code should allow the application to respond to a Launch
Services URL to open the application.
From Thomas Zoechling
(https://stackoverflow.com/users/100848/thomas-zoechling) on Stack
Overflow:
https://stackoverflow.com/questions/1991072/how-to-handle-with-a-default-url-scheme/1991162#1991162
|
|
|