projects
/
enjoyable.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Correct some names. NJOutputController should be NJOutputViewController as it doesn...
[enjoyable.git]
/
Categories
/
NSView+FirstResponder.m
1
#import "NSView+FirstResponder.h"
2
3
@implementation NSView (FirstResponder)
4
5
- (BOOL)resignIfFirstResponder {
6
NSWindow *window = self.window;
7
return window.firstResponder == self
8
? [window makeFirstResponder:nil]
9
: NO;
10
}
11
12
@end