Revision: 18288
http://bibdesk.svn.sourceforge.net/bibdesk/?rev=18288&view=rev
Author: hofman
Date: 2011-12-05 00:53:10 +0000 (Mon, 05 Dec 2011)
Log Message:
-----------
no need for button subclass
Modified Paths:
--------------
trunk/bibdesk/BDSKAddressTextField.m
Modified: trunk/bibdesk/BDSKAddressTextField.m
===================================================================
--- trunk/bibdesk/BDSKAddressTextField.m 2011-12-04 23:27:29 UTC (rev
18287)
+++ trunk/bibdesk/BDSKAddressTextField.m 2011-12-05 00:53:10 UTC (rev
18288)
@@ -42,10 +42,6 @@
#define BUTTON_SIZE 16.0
#define BUTTON_MARGIN 3.0
-@interface BDSKEmbeddedButton : NSButton
-@end
-
-
@implementation BDSKAddressTextField
+ (Class)cellClass {
@@ -57,12 +53,13 @@
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 = [[BDSKEmbeddedButton alloc] initWithFrame:rect];
+ button = [[NSButton alloc] initWithFrame:rect];
[button setButtonType:NSMomentaryChangeButton];
[button setBordered:NO];
[button setImagePosition:NSImageOnly];
[[button cell] setImageScaling:NSImageScaleProportionallyDown];
[button setAutoresizingMask:NSViewMinXMargin | NSViewMaxYMargin];
+ [button setRefusesFirstResponder:YES];
[self addSubview:button];
}
@@ -194,10 +191,3 @@
#endif
@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