mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 23:31:02 +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
|
||||
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue