<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Copy-Mailto/CopyMailto, branch master</title>
<subtitle>Copy email addresses from `mailto:` links instead of opening an email client</subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/Copy-Mailto/'/>
<entry>
<title>Rename the project directory "CopyMailto" -&gt; "Copy Mailto"</title>
<updated>2018-09-05T22:10:03+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-09-05T22:10:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/Copy-Mailto/commit/?id=d35983a3ace2d869aa478d107f475ca835b66e50'/>
<id>d35983a3ace2d869aa478d107f475ca835b66e50</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Rename "CopyMailto" Xcode project to "Copy Mailto"</title>
<updated>2018-09-05T22:08:25+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-09-05T22:08:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/Copy-Mailto/commit/?id=4e2eea2beb2705e028226fe0300d17a7e223ec3c'/>
<id>4e2eea2beb2705e028226fe0300d17a7e223ec3c</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>MainMenu.xib: Re-enable `terminate:` action on "Quit" click</title>
<updated>2018-09-05T21:19:36+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-09-05T21:18:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/Copy-Mailto/commit/?id=9b645f62f4a697996db7d3bcdcbe54e0479294c2'/>
<id>9b645f62f4a697996db7d3bcdcbe54e0479294c2</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>Make "Quit" button work on "q" or "Escape" key press</title>
<updated>2018-09-05T21:10:18+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-09-05T21:10:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/Copy-Mailto/commit/?id=b44d11312c8dd908a8e6d3c83e8f9773a893e15c'/>
<id>b44d11312c8dd908a8e6d3c83e8f9773a893e15c</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>setDefaultURLHandler: Remove `NSLog`s</title>
<updated>2018-09-05T20:14:04+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-09-05T20:14:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/Copy-Mailto/commit/?id=e9da806f26bd6a9b11aa461a3093346967ccaf52'/>
<id>e9da806f26bd6a9b11aa461a3093346967ccaf52</id>
<content type='text'>
These debug logs are no longer necessary now that we know that it works.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These debug logs are no longer necessary now that we know that it works.
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove unused `saveDefaultURLHandler`</title>
<updated>2018-09-05T20:09:51+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-09-05T20:09:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/Copy-Mailto/commit/?id=04f9b781817751fd8cfc244a05b424e3308100b3'/>
<id>04f9b781817751fd8cfc244a05b424e3308100b3</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove unused `applicationWillTerminate` method</title>
<updated>2018-09-05T20:09:10+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-09-05T20:09:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/Copy-Mailto/commit/?id=654160eba671d3fc4050833551e2ebe7c13235b5'/>
<id>654160eba671d3fc4050833551e2ebe7c13235b5</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Terminate app when email address is copied</title>
<updated>2018-09-05T20:07:45+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-09-05T20:07:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/Copy-Mailto/commit/?id=0ce12e58bbfa7bf3b550fdba1fee4250448f9ba2'/>
<id>0ce12e58bbfa7bf3b550fdba1fee4250448f9ba2</id>
<content type='text'>
Once the email is copied, the application has exhausted its usefulness
and should just quit as if it were a dialog.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Once the email is copied, the application has exhausted its usefulness
and should just quit as if it were a dialog.
</pre>
</div>
</content>
</entry>
<entry>
<title>MainMenu.xib: Correctly align "Quit" button next to "Copy" button</title>
<updated>2018-09-05T20:03:10+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-09-05T20:01:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/Copy-Mailto/commit/?id=96a2880db7109be6e48de4eb4275e9eae6fd00f0'/>
<id>96a2880db7109be6e48de4eb4275e9eae6fd00f0</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>MainMenu.xib: Make title label bold</title>
<updated>2018-09-05T20:03:10+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-09-05T20:00:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/Copy-Mailto/commit/?id=826a515159920777cb4f38663051a7686c4d24d5'/>
<id>826a515159920777cb4f38663051a7686c4d24d5</id>
<content type='text'>
Fix this warning:

    warning: Attribute Unavailable: System Font Weights other than
    Regular or Bold before OS X 10.11
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix this warning:

    warning: Attribute Unavailable: System Font Weights other than
    Regular or Bold before OS X 10.11
</pre>
</div>
</content>
</entry>
</feed>
