+ wxAutoNSAutoreleasePool pool;
+ if(m_selectedBitmap.Ok())
+ {
+ CocoaTakeFocus();
+ wxASSERT(m_cocoaNSImage);
+ m_selectedBitmap.SetNSBitmapImageRep(
+ [[NSBitmapImageRep alloc]
+ initWithFocusedViewRect:NSMakeRect(0.0,0.0,
+ m_selectedBitmap.GetWidth(),
+ m_selectedBitmap.GetHeight())]);
+ }