X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1c4e8f384d7c9a2e1f31e9602917f2d1318de01f..3046dbdcfecb63209025043cc008d023145a921a:/src/cocoa/frame.mm?ds=sidebyside diff --git a/src/cocoa/frame.mm b/src/cocoa/frame.mm index 4a3569d81e..78b82d4f8c 100644 --- a/src/cocoa/frame.mm +++ b/src/cocoa/frame.mm @@ -6,7 +6,7 @@ // Created: 2003/03/16 // RCS-ID: $Id$ // Copyright: (c) 2003 David Elliott -// Licence: wxWidgets licence +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #include "wx/wxprec.h" @@ -34,8 +34,6 @@ BEGIN_EVENT_TABLE(wxFrame, wxFrameBase) END_EVENT_TABLE() -IMPLEMENT_DYNAMIC_CLASS(wxFrame, wxTopLevelWindow) - void wxFrame::Init() { m_frameNSView = nil; @@ -170,7 +168,7 @@ void wxFrame::CocoaReplaceView(WX_NSView oldView, WX_NSView newView) void wxFrame::UpdateFrameNSView() { if(!m_frameNSView) - { + { // NOTE: We only need a plain NSView here since we don't associate it with ourselves. m_frameNSView = [[NSView alloc] initWithFrame:[[m_cocoaNSWindow contentView] frame]]; [m_cocoaNSWindow setContentView: m_frameNSView]; [m_frameNSView addSubview:m_cocoaNSView];