aboutsummaryrefslogtreecommitdiffstats
path: root/CopyMailto.xcodeproj/project.pbxproj
AgeCommit message (Collapse)Author
2018-09-06Rename "CopyMailto" Xcode project to "Copy Mailto"Teddy Wing
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.
2018-09-05Make "Quit" button work on "q" or "Escape" key pressTeddy Wing
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.
2018-09-05Turn off SandboxTeddy Wing
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.
2018-09-05Add `DefaultURLHandler`; Get current handler for `mailto` URLsTeddy Wing
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.
2018-09-05Change project to build for older OSesTeddy Wing
Set deployment target to OS X 10.6 and the Xcode project to Xcode 3.2.
2018-09-05New Xcode 9.2 (9C40b) projectTeddy Wing