Search
lxdream.org :: lxdream/src/cocoaui/cocoa_ctrl.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/cocoaui/cocoa_ctrl.c
changeset 787:6717c02ff81f
prev770:429ff505c450
next849:bbe26d798fc2
author nkeynes
date Tue Jul 29 10:55:51 2008 +0000 (11 years ago)
permissions -rw-r--r--
last change Auto-cancel if the binding field loses focus
file annotate diff log raw
1.1 --- a/src/cocoaui/cocoa_ctrl.c Mon Jul 28 03:41:25 2008 +0000
1.2 +++ b/src/cocoaui/cocoa_ctrl.c Tue Jul 29 10:55:51 2008 +0000
1.3 @@ -64,6 +64,14 @@
1.4 }
1.5 }
1.6 }
1.7 +- (void)resignFirstResponder
1.8 +{
1.9 + if( isPrimed ) {
1.10 + [self setString: lastValue];
1.11 + [self setPrimed: NO];
1.12 + }
1.13 + [super resignFirstResponder];
1.14 +}
1.15 - (void)fireBindingChanged
1.16 {
1.17 id delegate = [self delegate];
.