On Aug 16, 2014, at 7:53 PM, Seth Willits <sli...@araelium.com> wrote:

> This is leaving me little choice but to do something very specialized and 
> ugly. 

Well… the simplest solution is to just disable the key equivalent myself 
instead of using NSWindow's methods. I don't like it, but it does work in my 
case...


- (void)textDidBeginEditing:(NSNotification *)notification;
{
        self.window.defaultButtonCell.keyEquivalent = @"";
        [super textDidBeginEditing:notification];
}


- (void)textDidEndEditing:(NSNotification *)notification;
{
        [super textDidEndEditing:notification];
        self.window.defaultButtonCell.keyEquivalent = @"\r";
}



--
Seth Willits




_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to