Revision: 18263
          http://bibdesk.svn.sourceforge.net/bibdesk/?rev=18263&view=rev
Author:   hofman
Date:     2011-12-01 01:10:42 +0000 (Thu, 01 Dec 2011)
Log Message:
-----------
don't make stop/reload button first responder

Modified Paths:
--------------
    trunk/bibdesk/BDSKAddressTextField.m

Modified: trunk/bibdesk/BDSKAddressTextField.m
===================================================================
--- trunk/bibdesk/BDSKAddressTextField.m        2011-11-30 12:55:13 UTC (rev 
18262)
+++ trunk/bibdesk/BDSKAddressTextField.m        2011-12-01 01:10:42 UTC (rev 
18263)
@@ -42,6 +42,10 @@
 #define BUTTON_SIZE 16.0
 #define BUTTON_MARGIN 3.0
 
+@interface BDSKEmbeddedButton : NSButton
+@end
+
+
 @implementation BDSKAddressTextField
 
 + (Class)cellClass {
@@ -53,7 +57,7 @@
     rect.origin.x = NSMaxX(bounds) - BUTTON_SIZE - BUTTON_MARGIN;
     rect.origin.y = [self isFlipped] ? NSMinY(bounds) + BUTTON_MARGIN : 
NSMaxY(bounds) - BUTTON_SIZE - BUTTON_MARGIN;
     rect.size.width = rect.size.height = BUTTON_SIZE;
-    button = [[NSButton alloc] initWithFrame:rect];
+    button = [[BDSKEmbeddedButton alloc] initWithFrame:rect];
     [button setButtonType:NSMomentaryChangeButton];
     [button setBordered:NO];
     [button setImagePosition:NSImageOnly];
@@ -124,3 +128,10 @@
 }
 
 @end
+
+
+@implementation BDSKEmbeddedButton
+
+- (BOOL)acceptsFirstResponder { return NO; }
+
+@end

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to