+ virtual void PopUp( wxWindow *win, int x, int y )
+ {
+ win->ScreenToClient( &x , &y ) ;
+ NSView *view = win->GetPeer()->GetWXWidget();
+ NSRect frame = [view frame];
+ frame.origin.x = x;
+ frame.origin.y = y;
+ frame.size.width = 1;
+ frame.size.height = 1;
+ NSPopUpButtonCell *popUpButtonCell = [[NSPopUpButtonCell alloc] initTextCell:@"" pullsDown:NO];
+ [popUpButtonCell setAutoenablesItems:NO];
+ [popUpButtonCell setAltersStateOfSelectedItem:NO];
+ [popUpButtonCell setMenu:m_osxMenu];
+ [popUpButtonCell selectItem:nil];
+ [popUpButtonCell performClickWithFrame:frame inView:view];
+ [popUpButtonCell release];
+ }
+