reworking event handling to redirect to c++ virtual functions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58704 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
		@@ -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;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user