Standardized the initialization.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5178 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 1999-11-14 03:25:33 +00:00
parent 1deef2c3d7
commit a80baefc00

View file

@ -41,8 +41,6 @@
@implementation NSSecureTextField
id _nsSecureTextFieldCellClass = nil;
/*
==============
+initialize
@ -52,30 +50,10 @@ id _nsSecureTextFieldCellClass = nil;
{
if (self == [NSSecureTextField class]) {
[self setVersion:1];
[self setCellClass:[NSSecureTextFieldCell class]];
[self setCellClass: [NSSecureTextFieldCell class]];
}
}
/*
============
+cellClass
============
*/
+ (Class)cellClass
{
return _nsSecureTextFieldCellClass;
}
/*
===============
+setCellClass:
===============
*/
+ (void)setCellClass:(Class)classID
{
_nsSecureTextFieldCellClass = classID;
}
/*
==============
-initWithFrame:
@ -83,10 +61,8 @@ id _nsSecureTextFieldCellClass = nil;
*/
- (id)initWithFrame:(NSRect)frameRect
{
if ((self = [super _initFieldWithFrame:frameRect
cellClass:_nsSecureTextFieldCellClass])) {
[cell setEchosBullets:YES];
}
[super initWithFrame: frameRect];
[cell setEchosBullets:YES];
return self;
}