Re: NSAlert - Default Cancel also respond to Escape? [Solution]

2014-06-08 Thread Seth Willits
On May 19, 2014, at 1:30 PM, Seth Willits sli...@araelium.com wrote: Any ideas on how to get a Cancel button which is both the default button and responds to escape? Both require setting the button's key equivalent and there can only be one. Desired Behavior: Delete - First

Re: NSAlert - Default Cancel also respond to Escape?

2014-05-20 Thread Andy Lee
On May 19, 2014, at 4:30 PM, Seth Willits sli...@araelium.com wrote: Any ideas on how to get a Cancel button which is both the default button and responds to escape? Both require setting the button's key equivalent and there can only be one. This seems to work: NSAlert *alert =

NSAlert - Default Cancel also respond to Escape?

2014-05-19 Thread Seth Willits
Any ideas on how to get a Cancel button which is both the default button and responds to escape? Both require setting the button's key equivalent and there can only be one. -- Seth Willits -- Seth Willits ___ Cocoa-dev mailing list

Re: NSAlert - Default Cancel also respond to Escape?

2014-05-19 Thread Jerry Krinock
On 2014 May 19, at 13:30, Seth Willits sli...@araelium.com wrote: Any ideas on how to get a Cancel button which is both the default button and responds to escape? Both require setting the button's key equivalent and there can only be one. Maybe override -keyDown: somewhere.