@implementation wxNSTextField
-WXCOCOAIMPL_COMMON_IMPLEMENTATION
++ (void)initialize
+{
+ static BOOL initialized = NO;
+ if (!initialized)
+ {
+ initialized = YES;
+ wxOSXCocoaClassAddWXMethods( self );
+ }
+}
- (id)initWithFrame:(NSRect)frame
{
[super initWithFrame:frame];
- impl = NULL;
[self setDelegate: self];
[self setTarget: self];
// [self setAction: @selector(enterAction:)];
void wxNSTextFieldControl::SetEditable(bool editable)
{
+ [(wxNSTextField*) m_osxView setEditable:editable];
}
void wxNSTextFieldControl::GetSelection( long* from, long* to) const
//[v setDrawsBackground:NO];
wxWidgetCocoaImpl* c = new wxNSTextFieldControl( wxpeer, v );
- [v setImplementation:c];
return c;
}