Revision: 18265
http://bibdesk.svn.sourceforge.net/bibdesk/?rev=18265&view=rev
Author: hofman
Date: 2011-12-01 13:45:51 +0000 (Thu, 01 Dec 2011)
Log Message:
-----------
replace address field cell if necessary
Modified Paths:
--------------
trunk/bibdesk/BDSKAddressTextField.m
Modified: trunk/bibdesk/BDSKAddressTextField.m
===================================================================
--- trunk/bibdesk/BDSKAddressTextField.m 2011-12-01 07:35:02 UTC (rev
18264)
+++ trunk/bibdesk/BDSKAddressTextField.m 2011-12-01 13:45:51 UTC (rev
18265)
@@ -77,6 +77,25 @@
- (id)initWithCoder:(NSCoder *)aDecoder {
self = [super initWithCoder:aDecoder];
if (self) {
+ NSTextFieldCell *oldCell = [self cell];
+ if ([oldCell isKindOfClass:[[self class] cellClass]] == NO) {
+ BDSKAddressTextFieldCell *myCell = [[[[self class] cellClass]
alloc] initTextCell:[oldCell stringValue]];
+
+ [myCell setFont:[oldCell font]];
+ [myCell setControlSize:[oldCell controlSize]];
+ [myCell setControlTint:[oldCell controlTint]];
+ [myCell setEnabled:[oldCell isEnabled]];
+ [myCell setAlignment:NSLeftTextAlignment];
+ [myCell setWraps:[oldCell wraps]];
+ [myCell setScrollable:[oldCell isScrollable]];
+ [myCell setSelectable:[oldCell isSelectable]];
+ [myCell setEditable:[oldCell isEditable]];
+ [myCell setBezeled:YES];
+ [myCell setBezelStyle:NSTextFieldSquareBezel];
+
+ [self setCell:myCell];
+ [myCell release];
+ }
button = [[aDecoder decodeObjectForKey:@"button"] retain];
if (button == nil)
[self makeButton];
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