Show
Ignore:
Timestamp:
10/10/08 12:01:32 (3 months ago)
Author:
SC
Message:

moving embedding to common API

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • wxWidgets/trunk/src/osx/cocoa/tglbtn.mm

    r55366 r56218  
    3535                                    long extraStyle) 
    3636{ 
    37     NSView* sv = (wxpeer->GetParent()->GetHandle() ); 
    38      
    3937    NSRect r = wxOSXGetFrameForControl( wxpeer, pos , size ) ; 
    4038    wxNSButton* v = [[wxNSButton alloc] initWithFrame:r]; 
     
    4240    [v setBezelStyle:NSRoundedBezelStyle];     
    4341    [v setButtonType:NSOnOffButton]; 
    44     [sv addSubview:v]; 
    4542    wxWidgetCocoaImpl* c = new wxWidgetCocoaImpl( wxpeer, v ); 
    4643    [v setImplementation:c]; 
     
    5754                                    long extraStyle) 
    5855{     
    59     NSView* sv = (wxpeer->GetParent()->GetHandle() ); 
    60      
    6156    NSRect r = wxOSXGetFrameForControl( wxpeer, pos , size ) ; 
    6257    wxNSButton* v = [[wxNSButton alloc] initWithFrame:r]; 
     
    6459    [v setBezelStyle:NSRegularSquareBezelStyle]; 
    6560    [v setButtonType:NSOnOffButton]; 
    66     [sv addSubview:v]; 
    6761    wxWidgetCocoaImpl* c = new wxWidgetCocoaImpl( wxpeer, v ); 
    6862    [v setImplementation:c];