Featured Apps

MyMemes

Create Your Own Memes
Add captions to the most popular meme images or your own photos

Collaged

Create Photo Collages
Easily create photo collages to share with friends and family

Sleepify

Music Alarm Clock
Simple, stylist and intuitive music alarm clock

Remove focus from NSTextField

20 May 2015

To remove focus from an NSTextField in Yosemite, use the following code:

Objective-C
dispatch_async(dispatch_get_main_queue(), ^{
    [self.window makeFirstResponder:nil];
});