2001-12-17 16:51:51 +00:00
|
|
|
/** <title>NSTextFieldCell</title>
|
1996-05-30 20:03:15 +00:00
|
|
|
|
2001-12-17 16:51:51 +00:00
|
|
|
<abstract>Cell class for the text field entry control</abstract>
|
1996-05-30 20:03:15 +00:00
|
|
|
|
|
|
|
Copyright (C) 1996 Free Software Foundation, Inc.
|
|
|
|
|
2001-12-17 16:51:51 +00:00
|
|
|
Author: Scott Christley <scottc@net-community.com>
|
1996-05-30 20:03:15 +00:00
|
|
|
Date: 1996
|
1999-11-11 23:17:13 +00:00
|
|
|
Author: Nicola Pero <n.pero@mi.flashnet.it>
|
|
|
|
Date: November 1999
|
2024-12-12 18:35:43 +00:00
|
|
|
|
1996-05-30 20:03:15 +00:00
|
|
|
This file is part of the GNUstep GUI Library.
|
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or
|
2007-10-29 21:16:17 +00:00
|
|
|
modify it under the terms of the GNU Lesser General Public
|
1996-05-30 20:03:15 +00:00
|
|
|
License as published by the Free Software Foundation; either
|
2008-06-10 04:01:49 +00:00
|
|
|
version 2 of the License, or (at your option) any later version.
|
2007-10-29 21:16:17 +00:00
|
|
|
|
1996-05-30 20:03:15 +00:00
|
|
|
This library is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2007-10-29 21:16:17 +00:00
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
Lesser General Public License for more details.
|
1996-05-30 20:03:15 +00:00
|
|
|
|
2007-10-29 21:16:17 +00:00
|
|
|
You should have received a copy of the GNU Lesser General Public
|
1996-10-18 17:14:13 +00:00
|
|
|
License along with this library; see the file COPYING.LIB.
|
2024-12-12 18:35:43 +00:00
|
|
|
If not, see <http://www.gnu.org/licenses/> or write to the
|
|
|
|
Free Software Foundation, 51 Franklin Street, Fifth Floor,
|
2007-10-29 21:16:17 +00:00
|
|
|
Boston, MA 02110-1301, USA.
|
2024-12-12 18:35:43 +00:00
|
|
|
*/
|
1996-05-30 20:03:15 +00:00
|
|
|
|
2010-03-31 08:14:50 +00:00
|
|
|
#import "config.h"
|
|
|
|
#import <Foundation/NSNotification.h>
|
|
|
|
#import "AppKit/NSAttributedString.h"
|
|
|
|
#import "AppKit/NSColor.h"
|
|
|
|
#import "AppKit/NSControl.h"
|
|
|
|
#import "AppKit/NSEvent.h"
|
|
|
|
#import "AppKit/NSFont.h"
|
|
|
|
#import "AppKit/NSGraphics.h"
|
2024-08-28 21:42:30 +00:00
|
|
|
#import "AppKit/NSKeyValueBinding.h"
|
2010-03-31 08:14:50 +00:00
|
|
|
#import "AppKit/NSStringDrawing.h"
|
|
|
|
#import "AppKit/NSTextField.h"
|
|
|
|
#import "AppKit/NSTextFieldCell.h"
|
|
|
|
#import "AppKit/NSText.h"
|
1996-05-30 20:03:15 +00:00
|
|
|
|
2024-08-28 21:42:30 +00:00
|
|
|
#import "GSBindingHelpers.h"
|
|
|
|
|
1999-11-11 23:17:13 +00:00
|
|
|
@implementation NSTextFieldCell
|
2008-12-08 16:28:13 +00:00
|
|
|
|
1999-04-01 06:47:43 +00:00
|
|
|
+ (void) initialize
|
1996-05-30 20:03:15 +00:00
|
|
|
{
|
|
|
|
if (self == [NSTextFieldCell class])
|
|
|
|
{
|
2024-12-12 18:35:43 +00:00
|
|
|
[self exposeBinding: NSValueBinding];
|
2004-09-16 07:34:41 +00:00
|
|
|
[self setVersion: 2];
|
1996-05-30 20:03:15 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//
|
|
|
|
// Initialization
|
|
|
|
//
|
1999-04-01 06:47:43 +00:00
|
|
|
- (id) initTextCell: (NSString *)aString
|
1996-05-30 20:03:15 +00:00
|
|
|
{
|
2007-09-09 15:30:06 +00:00
|
|
|
self = [super initTextCell: aString];
|
|
|
|
if (self == nil)
|
|
|
|
return self;
|
1996-05-30 20:03:15 +00:00
|
|
|
|
2008-12-08 16:28:13 +00:00
|
|
|
ASSIGN(_text_color, [NSColor textColor]);
|
|
|
|
ASSIGN(_background_color, [NSColor textBackgroundColor]);
|
2007-09-09 15:30:06 +00:00
|
|
|
// _textfieldcell_draws_background = NO;
|
2004-09-12 16:58:32 +00:00
|
|
|
_action_mask = NSKeyUpMask | NSKeyDownMask;
|
1996-05-30 20:03:15 +00:00
|
|
|
return self;
|
|
|
|
}
|
|
|
|
|
1999-04-01 06:47:43 +00:00
|
|
|
- (void) dealloc
|
1997-08-16 23:47:24 +00:00
|
|
|
{
|
2000-12-07 00:20:17 +00:00
|
|
|
RELEASE(_background_color);
|
|
|
|
RELEASE(_text_color);
|
2007-09-09 15:30:06 +00:00
|
|
|
RELEASE(_placeholder);
|
1997-08-16 23:47:24 +00:00
|
|
|
[super dealloc];
|
|
|
|
}
|
|
|
|
|
1999-03-02 08:58:30 +00:00
|
|
|
- (id) copyWithZone: (NSZone*)zone
|
1997-08-16 23:47:24 +00:00
|
|
|
{
|
1999-11-11 23:17:13 +00:00
|
|
|
NSTextFieldCell *c = [super copyWithZone: zone];
|
1997-08-16 23:47:24 +00:00
|
|
|
|
2007-09-09 15:30:06 +00:00
|
|
|
RETAIN(_background_color);
|
|
|
|
RETAIN(_text_color);
|
|
|
|
c->_placeholder = [_placeholder copyWithZone: zone];
|
1997-08-16 23:47:24 +00:00
|
|
|
|
|
|
|
return c;
|
|
|
|
}
|
|
|
|
|
1996-05-30 20:03:15 +00:00
|
|
|
//
|
2024-12-12 18:35:43 +00:00
|
|
|
// Modifying Graphic Attributes
|
1996-05-30 20:03:15 +00:00
|
|
|
//
|
1999-11-11 23:17:13 +00:00
|
|
|
- (void) setBackgroundColor: (NSColor *)aColor
|
1996-05-30 20:03:15 +00:00
|
|
|
{
|
1999-11-16 23:55:12 +00:00
|
|
|
ASSIGN (_background_color, aColor);
|
2004-02-01 00:27:59 +00:00
|
|
|
if (_control_view)
|
|
|
|
if ([_control_view isKindOfClass: [NSControl class]])
|
|
|
|
[(NSControl *)_control_view updateCell: self];
|
1996-05-30 20:03:15 +00:00
|
|
|
}
|
|
|
|
|
2005-11-18 11:06:09 +00:00
|
|
|
/** <p>Returns the color used to draw the background</p>
|
|
|
|
<p>See Also: -setBackgroundColor:</p>
|
|
|
|
*/
|
1999-11-11 23:17:13 +00:00
|
|
|
- (NSColor *) backgroundColor
|
1996-05-30 20:03:15 +00:00
|
|
|
{
|
1999-11-11 23:17:13 +00:00
|
|
|
return _background_color;
|
1996-05-30 20:03:15 +00:00
|
|
|
}
|
|
|
|
|
2005-11-18 11:06:09 +00:00
|
|
|
|
|
|
|
/** <p>Sets whether the NSTextFieldCell draw its background color</p>
|
|
|
|
<p>See Also: -drawsBackground</p>
|
|
|
|
*/
|
1999-04-01 06:47:43 +00:00
|
|
|
- (void) setDrawsBackground: (BOOL)flag
|
1996-05-30 20:03:15 +00:00
|
|
|
{
|
1999-12-13 16:20:59 +00:00
|
|
|
_textfieldcell_draws_background = flag;
|
2004-02-01 00:27:59 +00:00
|
|
|
if (_control_view)
|
|
|
|
if ([_control_view isKindOfClass: [NSControl class]])
|
|
|
|
[(NSControl *)_control_view updateCell: self];
|
1996-05-30 20:03:15 +00:00
|
|
|
}
|
|
|
|
|
2005-11-18 11:06:09 +00:00
|
|
|
/** <p>Returns whether the NSTextFieldCell draw its background color</p>
|
|
|
|
<p>See Also: -setBackgroundColor:</p>
|
|
|
|
*/
|
1999-11-11 23:17:13 +00:00
|
|
|
- (BOOL) drawsBackground
|
1996-05-30 20:03:15 +00:00
|
|
|
{
|
1999-12-13 16:20:59 +00:00
|
|
|
return _textfieldcell_draws_background;
|
1996-05-30 20:03:15 +00:00
|
|
|
}
|
|
|
|
|
2005-11-18 11:06:09 +00:00
|
|
|
/** <p>Sets the text color to aColor</p>
|
|
|
|
<p>See Also: -textColor</p>
|
|
|
|
*/
|
1999-11-11 23:17:13 +00:00
|
|
|
- (void) setTextColor: (NSColor *)aColor
|
1996-05-30 20:03:15 +00:00
|
|
|
{
|
1999-11-11 23:17:13 +00:00
|
|
|
ASSIGN (_text_color, aColor);
|
2004-02-01 00:27:59 +00:00
|
|
|
if (_control_view)
|
|
|
|
if ([_control_view isKindOfClass: [NSControl class]])
|
|
|
|
[(NSControl *)_control_view updateCell: self];
|
1996-05-30 20:03:15 +00:00
|
|
|
}
|
|
|
|
|
2005-11-18 11:06:09 +00:00
|
|
|
/** <p>Returns the text color</p>
|
|
|
|
<p>See Also: -setTextColor:</p>
|
|
|
|
*/
|
1999-04-01 06:47:43 +00:00
|
|
|
- (NSColor *) textColor
|
1996-05-30 20:03:15 +00:00
|
|
|
{
|
1999-11-11 23:17:13 +00:00
|
|
|
return _text_color;
|
1996-05-30 20:03:15 +00:00
|
|
|
}
|
|
|
|
|
2007-09-09 15:30:06 +00:00
|
|
|
- (void) setBezelStyle: (NSTextFieldBezelStyle)style
|
|
|
|
{
|
2008-12-08 16:28:13 +00:00
|
|
|
_bezelStyle = style;
|
2007-09-09 15:30:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
- (NSTextFieldBezelStyle) bezelStyle
|
|
|
|
{
|
|
|
|
return _bezelStyle;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (NSAttributedString*) placeholderAttributedString
|
|
|
|
{
|
|
|
|
if (_textfieldcell_placeholder_is_attributed_string == YES)
|
|
|
|
{
|
|
|
|
return (NSAttributedString*)_placeholder;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
return nil;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
- (NSString*) placeholderString
|
|
|
|
{
|
|
|
|
if (_textfieldcell_placeholder_is_attributed_string == YES)
|
|
|
|
{
|
|
|
|
return nil;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
return (NSString*)_placeholder;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void) setPlaceholderAttributedString: (NSAttributedString*)string
|
|
|
|
{
|
|
|
|
ASSIGN(_placeholder, string);
|
|
|
|
_textfieldcell_placeholder_is_attributed_string = YES;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void) setPlaceholderString: (NSString*)string
|
|
|
|
{
|
|
|
|
ASSIGN(_placeholder, string);
|
|
|
|
_textfieldcell_placeholder_is_attributed_string = NO;
|
|
|
|
}
|
|
|
|
|
1999-11-11 23:17:13 +00:00
|
|
|
- (NSText *) setUpFieldEditorAttributes: (NSText *)textObject
|
1996-05-30 20:03:15 +00:00
|
|
|
{
|
1999-11-11 23:17:13 +00:00
|
|
|
textObject = [super setUpFieldEditorAttributes: textObject];
|
1999-12-13 16:20:59 +00:00
|
|
|
[textObject setDrawsBackground: _textfieldcell_draws_background];
|
1999-11-11 23:17:13 +00:00
|
|
|
[textObject setBackgroundColor: _background_color];
|
|
|
|
[textObject setTextColor: _text_color];
|
|
|
|
return textObject;
|
1996-05-30 20:03:15 +00:00
|
|
|
}
|
|
|
|
|
2024-12-12 18:35:43 +00:00
|
|
|
- (void) _drawBackgroundWithFrame: (NSRect)cellFrame
|
|
|
|
inView: (NSView*)controlView
|
1999-03-03 09:31:27 +00:00
|
|
|
{
|
2008-06-09 10:04:49 +00:00
|
|
|
if (_textfieldcell_draws_background)
|
2009-11-09 14:53:59 +00:00
|
|
|
{
|
2008-06-09 10:04:49 +00:00
|
|
|
if ([self isEnabled])
|
2024-12-12 18:35:43 +00:00
|
|
|
{
|
|
|
|
[_background_color set];
|
|
|
|
}
|
2008-06-09 10:04:49 +00:00
|
|
|
else
|
2024-12-12 18:35:43 +00:00
|
|
|
{
|
|
|
|
[[NSColor controlBackgroundColor] set];
|
|
|
|
}
|
2008-06-09 10:04:49 +00:00
|
|
|
NSRectFill([self drawingRectForBounds: cellFrame]);
|
2024-12-12 18:35:43 +00:00
|
|
|
}
|
2008-12-08 16:28:13 +00:00
|
|
|
}
|
|
|
|
|
2024-12-12 18:35:43 +00:00
|
|
|
- (void) _drawBorderAndBackgroundWithFrame: (NSRect)cellFrame
|
|
|
|
inView: (NSView*)controlView
|
2008-12-08 16:28:13 +00:00
|
|
|
{
|
|
|
|
// FIXME: Should use the bezel style if set.
|
|
|
|
[super _drawBorderAndBackgroundWithFrame: cellFrame inView: controlView];
|
|
|
|
[self _drawBackgroundWithFrame: cellFrame inView: controlView];
|
1999-03-03 09:31:27 +00:00
|
|
|
}
|
|
|
|
|
2009-12-16 22:25:59 +00:00
|
|
|
- (void) drawInteriorWithFrame: (NSRect)cellFrame inView: (NSView*)controlView
|
|
|
|
{
|
2009-12-17 01:03:07 +00:00
|
|
|
if (_cell.in_editing)
|
|
|
|
[self _drawEditorWithFrame: cellFrame inView: controlView];
|
|
|
|
else
|
|
|
|
{
|
|
|
|
NSRect titleRect;
|
|
|
|
|
|
|
|
/* Make sure we are a text cell; titleRect might return an incorrect
|
2024-12-12 18:35:43 +00:00
|
|
|
rectangle otherwise. Note that the type could be different if the
|
|
|
|
user has set an image on us, which we just ignore (OS X does so as
|
|
|
|
well). */
|
2009-12-17 01:03:07 +00:00
|
|
|
_cell.type = NSTextCellType;
|
|
|
|
titleRect = [self titleRectForBounds: cellFrame];
|
|
|
|
[[self _drawAttributedString] drawInRect: titleRect];
|
|
|
|
}
|
2009-12-16 22:25:59 +00:00
|
|
|
}
|
|
|
|
|
2024-12-12 18:35:43 +00:00
|
|
|
/*
|
2007-09-09 15:30:06 +00:00
|
|
|
Attributed string that will be displayed.
|
|
|
|
*/
|
2009-12-16 22:25:59 +00:00
|
|
|
- (NSAttributedString*) _drawAttributedString
|
2007-09-09 15:30:06 +00:00
|
|
|
{
|
|
|
|
NSAttributedString *attrStr;
|
|
|
|
|
|
|
|
attrStr = [super _drawAttributedString];
|
2021-10-27 19:18:23 +00:00
|
|
|
if ((attrStr == nil) || ([[attrStr string] length] == 0))
|
2007-09-09 15:30:06 +00:00
|
|
|
{
|
|
|
|
attrStr = [self placeholderAttributedString];
|
2021-10-27 19:18:23 +00:00
|
|
|
if ((attrStr == nil) || ([[attrStr string] length] == 0))
|
2024-12-12 18:35:43 +00:00
|
|
|
{
|
|
|
|
NSString *string;
|
|
|
|
NSDictionary *attributes;
|
|
|
|
NSMutableDictionary *newAttribs;
|
|
|
|
|
|
|
|
string = [self placeholderString];
|
|
|
|
if (string == nil)
|
|
|
|
{
|
|
|
|
return nil;
|
|
|
|
}
|
|
|
|
|
|
|
|
attributes = [self _nonAutoreleasedTypingAttributes];
|
|
|
|
newAttribs = [NSMutableDictionary
|
|
|
|
dictionaryWithDictionary: attributes];
|
|
|
|
[newAttribs setObject: [NSColor disabledControlTextColor]
|
|
|
|
forKey: NSForegroundColorAttributeName];
|
|
|
|
|
|
|
|
return AUTORELEASE([[NSAttributedString alloc]
|
|
|
|
initWithString: string
|
|
|
|
attributes: newAttribs]);
|
|
|
|
}
|
2007-09-09 15:30:06 +00:00
|
|
|
else
|
2024-12-12 18:35:43 +00:00
|
|
|
{
|
|
|
|
return attrStr;
|
|
|
|
}
|
2007-09-09 15:30:06 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
return attrStr;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
1999-11-16 23:55:12 +00:00
|
|
|
- (BOOL) isOpaque
|
|
|
|
{
|
2024-12-12 18:35:43 +00:00
|
|
|
if (_textfieldcell_draws_background == NO
|
|
|
|
|| _background_color == nil
|
2008-12-08 16:28:13 +00:00
|
|
|
|| [_background_color alphaComponent] < 1.0)
|
|
|
|
return NO;
|
|
|
|
else
|
2024-12-12 18:35:43 +00:00
|
|
|
return YES;
|
1999-11-16 23:55:12 +00:00
|
|
|
}
|
|
|
|
|
1996-05-30 20:03:15 +00:00
|
|
|
//
|
|
|
|
// NSCoding protocol
|
|
|
|
//
|
1999-03-02 08:58:30 +00:00
|
|
|
- (void) encodeWithCoder: (NSCoder*)aCoder
|
1996-05-30 20:03:15 +00:00
|
|
|
{
|
1999-12-13 16:20:59 +00:00
|
|
|
BOOL tmp;
|
2008-12-08 16:28:13 +00:00
|
|
|
|
1999-03-02 08:58:30 +00:00
|
|
|
[super encodeWithCoder: aCoder];
|
1996-05-30 20:03:15 +00:00
|
|
|
|
2006-10-15 08:34:47 +00:00
|
|
|
if ([aCoder allowsKeyedCoding])
|
2006-08-09 01:37:32 +00:00
|
|
|
{
|
|
|
|
[aCoder encodeObject: [self backgroundColor] forKey: @"NSBackgroundColor"];
|
|
|
|
[aCoder encodeObject: [self textColor] forKey: @"NSTextColor"];
|
|
|
|
[aCoder encodeBool: [self drawsBackground] forKey: @"NSDrawsBackground"];
|
2008-12-08 16:28:13 +00:00
|
|
|
if ([self isBezeled])
|
2024-12-12 18:35:43 +00:00
|
|
|
{
|
|
|
|
[aCoder encodeInt: [self bezelStyle] forKey: @"NSTextBezelStyle"];
|
|
|
|
}
|
2006-08-09 01:37:32 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
[aCoder encodeValueOfObjCType: @encode(id) at: &_background_color];
|
|
|
|
[aCoder encodeValueOfObjCType: @encode(id) at: &_text_color];
|
|
|
|
tmp = _textfieldcell_draws_background;
|
|
|
|
[aCoder encodeValueOfObjCType: @encode(BOOL) at: &tmp];
|
|
|
|
}
|
1996-05-30 20:03:15 +00:00
|
|
|
}
|
|
|
|
|
1999-03-02 08:58:30 +00:00
|
|
|
- (id) initWithCoder: (NSCoder*)aDecoder
|
1996-05-30 20:03:15 +00:00
|
|
|
{
|
2004-02-06 00:16:54 +00:00
|
|
|
self = [super initWithCoder: aDecoder];
|
2008-12-08 16:28:13 +00:00
|
|
|
if (self == nil)
|
|
|
|
return self;
|
2024-12-12 18:35:43 +00:00
|
|
|
|
2004-02-02 21:40:00 +00:00
|
|
|
if ([aDecoder allowsKeyedCoding])
|
|
|
|
{
|
2008-12-08 16:28:13 +00:00
|
|
|
if ([aDecoder containsValueForKey: @"NSBackgroundColor"])
|
2024-12-12 18:35:43 +00:00
|
|
|
{
|
|
|
|
[self setBackgroundColor: [aDecoder decodeObjectForKey:
|
|
|
|
@"NSBackgroundColor"]];
|
|
|
|
}
|
2008-12-08 16:28:13 +00:00
|
|
|
if ([aDecoder containsValueForKey: @"NSTextColor"])
|
2024-12-12 18:35:43 +00:00
|
|
|
{
|
|
|
|
[self setTextColor: [aDecoder decodeObjectForKey: @"NSTextColor"]];
|
|
|
|
}
|
2004-02-06 00:16:54 +00:00
|
|
|
if ([aDecoder containsValueForKey: @"NSDrawsBackground"])
|
2024-12-12 18:35:43 +00:00
|
|
|
{
|
|
|
|
[self setDrawsBackground: [aDecoder decodeBoolForKey:
|
|
|
|
@"NSDrawsBackground"]];
|
|
|
|
}
|
2008-12-08 16:28:13 +00:00
|
|
|
if ([aDecoder containsValueForKey: @"NSTextBezelStyle"])
|
2024-12-12 18:35:43 +00:00
|
|
|
{
|
|
|
|
[self setBezelStyle: [aDecoder decodeIntForKey:
|
|
|
|
@"NSTextBezelStyle"]];
|
|
|
|
}
|
2024-11-02 16:50:48 +00:00
|
|
|
if ([aDecoder containsValueForKey: @"NSPlaceholderString"])
|
2024-12-12 18:35:43 +00:00
|
|
|
{
|
|
|
|
[self setPlaceholderString: [aDecoder decodeObjectForKey:
|
|
|
|
@"NSPlaceholderString"]];
|
|
|
|
}
|
2004-02-02 21:40:00 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
BOOL tmp;
|
|
|
|
|
2004-09-17 17:47:39 +00:00
|
|
|
if ([aDecoder versionForClassName:@"NSTextFieldCell"] < 2)
|
2024-12-12 18:35:43 +00:00
|
|
|
{
|
|
|
|
/* Replace the old default _action_mask with the new default one
|
|
|
|
if it's set. There isn't really a way to modify this value
|
|
|
|
on an NSTextFieldCell encoded in a .gorm file. The old default value
|
|
|
|
causes problems with newer NSTableViews which uses this to discern
|
|
|
|
whether it should trackMouse:inRect:ofView:untilMouseUp: or not.
|
|
|
|
This also disables the action from being sent on an uneditable and
|
|
|
|
unselectable text fields.
|
|
|
|
*/
|
|
|
|
if (_action_mask == NSLeftMouseUpMask)
|
|
|
|
{
|
|
|
|
_action_mask = NSKeyUpMask | NSKeyDownMask;
|
|
|
|
}
|
|
|
|
}
|
2004-09-17 17:47:39 +00:00
|
|
|
|
2004-02-02 21:40:00 +00:00
|
|
|
[aDecoder decodeValueOfObjCType: @encode(id) at: &_background_color];
|
|
|
|
[aDecoder decodeValueOfObjCType: @encode(id) at: &_text_color];
|
|
|
|
[aDecoder decodeValueOfObjCType: @encode(BOOL) at: &tmp];
|
|
|
|
_textfieldcell_draws_background = tmp;
|
|
|
|
}
|
1996-05-30 20:03:15 +00:00
|
|
|
|
|
|
|
return self;
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|