]> git.saurik.com Git - wxWidgets.git/blobdiff - src/cocoa/toplevel.mm
the same event handler class, not object, can be used with multiple windows (patch...
[wxWidgets.git] / src / cocoa / toplevel.mm
index fbcf064b1b7d938a27f21c1e3f399111150519fb..83dd00623d1cc066665c0a69cb0063b0c3af6bb2 100644 (file)
@@ -36,6 +36,7 @@
 #include "wx/cocoa/objc/NSView.h"
 #include "wx/cocoa/objc/NSWindow.h"
 #import <AppKit/NSPanel.h>
+
 // ----------------------------------------------------------------------------
 // globals
 // ----------------------------------------------------------------------------
@@ -139,7 +140,7 @@ bool wxTopLevelWindowCocoa::Create(wxWindow *parent,
     else
         newWindow = [[WXNSWindow alloc] initWithContentRect:cocoaRect styleMask:cocoaStyle backing:NSBackingStoreBuffered defer:NO];
     // Make sure the default content view is a WXNSView
-    [newWindow setContentView: [[WXNSView alloc] initWithFrame: [[newWindow contentView] frame]]];
+    [newWindow setContentView: [[WX_GET_OBJC_CLASS(WXNSView) alloc] initWithFrame: [[newWindow contentView] frame]]];
     // Associate the window and view
     SetNSWindow(newWindow);