Age | Commit message (Collapse) | Author |
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
Set deployment target to OS X 10.6 and the Xcode project to Xcode 3.2.
|
|
|