diff options
Diffstat (limited to 'AppKit/GTMHotKeyTextField.m')
-rw-r--r-- | AppKit/GTMHotKeyTextField.m | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/AppKit/GTMHotKeyTextField.m b/AppKit/GTMHotKeyTextField.m index 4524340..aa7962b 100644 --- a/AppKit/GTMHotKeyTextField.m +++ b/AppKit/GTMHotKeyTextField.m @@ -897,7 +897,10 @@ GTMOBJECT_SINGLETON_BOILERPLATE(GTMHotKeyFieldEditor, sharedHotKeyFieldEditor) // Force editing to end. This sends focus off into space slightly, but // its better than constantly capturing user events. This is exactly // like the Apple editor in their Keyboard pref pane. - [[[self delegate] cell] endEditing:self]; + id delegate = [self delegate]; + if ([delegate respondsToSelector:@selector(cell)]) { + [[delegate cell] endEditing:self]; + } } - (NSDictionary *)hotKeyDictionary { |