X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0c530e5a6790a1789d8f857eb0c1d49b743833cd..55410bb4f67febe1ca20654f078ea4fb9a6223ae:/src/osx/cocoa/statbox.mm diff --git a/src/osx/cocoa/statbox.mm b/src/osx/cocoa/statbox.mm index 34c2f27246..6c5bff4a67 100644 --- a/src/osx/cocoa/statbox.mm +++ b/src/osx/cocoa/statbox.mm @@ -18,7 +18,15 @@ @implementation wxNSBox -WXCOCOAIMPL_COMMON_IMPLEMENTATION_NOT_FLIPPED ++ (void)initialize +{ + static BOOL initialized = NO; + if (!initialized) + { + initialized = YES; + wxOSXCocoaClassAddWXMethods( self ); + } +} @end @@ -34,7 +42,7 @@ wxWidgetImplType* wxWidgetImpl::CreateGroupBox( wxWindowMac* wxpeer, NSRect r = wxOSXGetFrameForControl( wxpeer, pos , size ) ; wxNSBox* v = [[wxNSBox alloc] initWithFrame:r]; wxWidgetCocoaImpl* c = new wxWidgetCocoaImpl( wxpeer, v ); - [v setImplementation:c]; + c->SetFlipped(false); return c; }