Files
cappuccino/AppKit
Aparajita Fishman 0fe41e8b86 Default button fixes...
- CPButton -setKeyEquivalent was sending CPWindow -setDefaultButton. This is not Cocoa behavior, but more importantly it was causing an infinite loop, because CPWindow -setDefaultButton does (and is supposed to) send CPButton -setKeyEquivalent.

- CPButton -viewWillMoveToWindow should do nothing if the window is the same or the new window is nil. Otherwise, if the new window is nil and the button is the default button, -setDefaultButton ends up erasing the button's key equivalent. When awakening from a cib, this causes the button to never become the default, because during cib awakening -viewWillMoveToWindow is sent 3 times, the second time to a nil window. If a button does not belong to any window, there is no harm in keeping its key equivalent, and setting the default button is supposed to be an explicit operation.

- NSButton -initWithCoder should not send -setKeyEquivalent because it has side effects.

- CPWindow -setDefaultButton should check for a key equivalent of CPNewlineCharacter as well for consistency with CPButton.
2010-08-21 09:52:59 -04:00
..
2010-07-28 15:15:47 -07:00
2010-08-21 09:52:59 -04:00
2010-07-22 00:21:02 -05:00
2010-08-21 09:52:59 -04:00
2010-04-26 11:11:42 -04:00
2010-04-09 14:17:11 -07:00
2010-06-10 16:42:28 -05:00
2010-03-22 14:43:53 -07:00
2009-05-18 15:43:36 -07:00
2009-10-19 16:52:19 -07:00
2009-10-08 12:58:22 -07:00
2010-04-09 14:17:11 -07:00
2010-03-26 10:36:08 -07:00
2009-05-18 15:43:36 -07:00
2009-05-18 15:43:36 -07:00
2010-07-28 15:24:37 -07:00
2009-12-16 00:22:35 -05:00
2010-08-11 16:38:13 -04:00
2010-01-29 08:04:00 -08:00
2009-11-02 15:59:42 -08:00