#import <Foundation/NSString.h>
#import <AppKit/NSTextField.h>
+#import <AppKit/NSSecureTextField.h>
#import <AppKit/NSCell.h>
#include <math.h>
if(!CreateControl(parent,winid,pos,size,style,validator,name))
return false;
m_cocoaNSView = NULL;
- SetNSTextField([[NSTextField alloc] initWithFrame:MakeDefaultNSRect(size)]);
+ SetNSTextField([(style & wxTE_PASSWORD)?[NSSecureTextField alloc]:[NSTextField alloc] initWithFrame:MakeDefaultNSRect(size)]);
[m_cocoaNSView release];
[GetNSTextField() setStringValue:wxNSStringWithWxString(value)];