cleanup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67840 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1165,6 +1165,7 @@ outlineView:(NSOutlineView*)outlineView
|
||||
|
||||
wxDataViewCustomRenderer * const renderer = obj->customRenderer;
|
||||
|
||||
// if this method is called everything is already setup correctly,
|
||||
CGContextRef context = (CGContextRef) [[NSGraphicsContext currentContext] graphicsPort];
|
||||
CGContextSaveGState( context );
|
||||
|
||||
@@ -1174,14 +1175,13 @@ outlineView:(NSOutlineView*)outlineView
|
||||
CGContextScaleCTM( context, 1, -1 );
|
||||
}
|
||||
|
||||
// wxDC * const dc = renderer->GetDC();
|
||||
wxGraphicsContext* gc = wxGraphicsContext::CreateFromNative(context);
|
||||
wxGCDC dc;
|
||||
wxGraphicsContext* gc = wxGraphicsContext::CreateFromNative(context);
|
||||
dc.SetGraphicsContext(gc);
|
||||
|
||||
renderer->WXCallRender(wxFromNSRect(controlView, cellFrame), &dc, 0);
|
||||
|
||||
CGContextRestoreGState( context );
|
||||
// renderer->SetDC(NULL);
|
||||
}
|
||||
|
||||
-(NSRect) imageRectForBounds:(NSRect)cellFrame
|
||||
@@ -2329,11 +2329,12 @@ void wxCocoaDataViewControl::Resort()
|
||||
[m_OutlineView reloadData];
|
||||
}
|
||||
|
||||
/*
|
||||
void wxCocoaDataViewControl::StartEditor( const wxDataViewItem & item, unsigned int column )
|
||||
{
|
||||
[m_OutlineView editColumn:column row:[m_OutlineView rowForItem:[m_DataSource getDataViewItemFromBuffer:item]] withEvent:nil select:YES];
|
||||
}
|
||||
|
||||
*/
|
||||
//
|
||||
// other methods (inherited from wxDataViewWidgetImpl)
|
||||
//
|
||||
|
Reference in New Issue
Block a user