Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
|
|
According to this, we have no use for it:
https://stackoverflow.com/questions/26594367/what-is-the-use-of-entitlements-plist-file/26727630#26727630
|
|
|
|
|
|
I like it better with the space in between. Normally I'm used to not
using spaces, but since you can here, do it.
Following this guide to rename the project:
https://digitalleaves.com/blog/2017/06/rename-xcode-project/
Not yet finished, but committing this stage of the rename now.
|
|
Since we had removed the action in
b44d11312c8dd908a8e6d3c83e8f9773a893e15c, clicking on "Quit" didn't do
anything. Re-enable the button so that it correctly quits the app when
clicked once again.
|
|
Previously I only had a key equivalent on the "Escape" key because you
can only set a single key equivalent. But I wanted the "Quit" button to
work on both "Escape" and "q" presses.
I tried to do this by overriding `performKeyEquivalent:`:
- (BOOL)performKeyEquivalent:(NSEvent *)theEvent
{
if ([[theEvent characters] isEqualToString:@"q"] ||
[theEvent keyCode] == kVK_Escape) {
NSLog(@"%@", theEvent);
return YES;
}
return [super performKeyEquivalent:theEvent];
}
The method was called and it logged correctly, but the `IBAction`
wouldn't run. Maybe this doesn't work for what I want it to? Can't
figure out what the problem is.
Didn't want to deal any more so just overrode `keyDown:` instead and got
rid of the `IBAction`, just terminating the application in code.
|
|
These debug logs are no longer necessary now that we know that it works.
|
|
No longer planning on using this method. Ideally there would be a way to
save and restore the old default "mailto" handler bundle identifier,
but that's just too much of a pain and I don't want to bother.
|
|
|
|
Once the email is copied, the application has exhausted its usefulness
and should just quit as if it were a dialog.
|
|
|
|
Fix this warning:
warning: Attribute Unavailable: System Font Weights other than
Regular or Bold before OS X 10.11
|
|
|
|
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
|
|
Set window height/size to be smaller, set it to centered horizontally
and proportional vertical.
|
|
|
|
|
|
Also:
* Shorten window
* Align email address label
|
|
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
|
|
Uncheck the "Use Auto Layout" box as I was getting this error:
Auto Layout on OS X prior to 10.7
Thanks much to these Stack Overflow answers (geez damn it Apple):
- https://stackoverflow.com/questions/19612778/how-can-i-delete-the-xcode-constraints/19612829#19612829
- https://stackoverflow.com/questions/9566789/remove-autolayout-constraints-in-interface-builder/9566972#9566972
|
|
Turns out you can't register yourself as the default app handler when in
a sandbox, which apparently is the default when creating a new Xcode
project.
> that’s all…. except that I’m running my application in a Sandbox
> environment, and it returns the error -54 !
>
> After trying to find a solution for this, and on the
> devforums.apple.com forum, it seems that there is currently no
> solution, Apple just decided to remove that feature since Yosemite….
> It still works on Mavericks. That of course very disappointing, and
> even not mentioned in the Apple’s documentation.
(https://blog.sovapps.com/make-your-application-reply-to-mailto-links/)
Fuck that. Turn off sandboxing. Yay it works now.
|
|
* Remove all menus except the application menu as no others are needed
* Remove the "Preferences" item from the application menu as the app has
no preferences
|
|
This method is supposed to set CopyMailto as the default application for
"mailto" URLs. But it keeps giving me a `-54` error, or `202` status
code on the shell. WTF is going on?
|
|
Turns out `CFStringRef` can be "toll-free bridged" with `NSString`,
allowing us to simplify the call.
|
|
Add a class to get the current bundle handler for `mailto` URLs. It will
be extended to set CopyMailto as the default handler after saving the
original.
|
|
|
|
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.
|
|
Allow the file to be opened in the previous version of Xcode. Couldn't
pick anything lower.
|
|
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
|
|
Set deployment target to OS X 10.6 and the Xcode project to Xcode 3.2.
|
|
|