mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-25 06:41:12 +00:00
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:
parent
1deef2c3d7
commit
a80baefc00
1 changed files with 3 additions and 27 deletions
|
@ -41,8 +41,6 @@
|
||||||
|
|
||||||
@implementation NSSecureTextField
|
@implementation NSSecureTextField
|
||||||
|
|
||||||
id _nsSecureTextFieldCellClass = nil;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
==============
|
==============
|
||||||
+initialize
|
+initialize
|
||||||
|
@ -56,26 +54,6 @@ id _nsSecureTextFieldCellClass = nil;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
============
|
|
||||||
+cellClass
|
|
||||||
============
|
|
||||||
*/
|
|
||||||
+ (Class)cellClass
|
|
||||||
{
|
|
||||||
return _nsSecureTextFieldCellClass;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
===============
|
|
||||||
+setCellClass:
|
|
||||||
===============
|
|
||||||
*/
|
|
||||||
+ (void)setCellClass:(Class)classID
|
|
||||||
{
|
|
||||||
_nsSecureTextFieldCellClass = classID;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
==============
|
==============
|
||||||
-initWithFrame:
|
-initWithFrame:
|
||||||
|
@ -83,10 +61,8 @@ id _nsSecureTextFieldCellClass = nil;
|
||||||
*/
|
*/
|
||||||
- (id)initWithFrame:(NSRect)frameRect
|
- (id)initWithFrame:(NSRect)frameRect
|
||||||
{
|
{
|
||||||
if ((self = [super _initFieldWithFrame:frameRect
|
[super initWithFrame: frameRect];
|
||||||
cellClass:_nsSecureTextFieldCellClass])) {
|
|
||||||
[cell setEchosBullets:YES];
|
[cell setEchosBullets:YES];
|
||||||
}
|
|
||||||
|
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue