]> git.saurik.com Git - wxWidgets.git/blobdiff - src/cocoa/toplevel.mm
Added dummy resources for wxCocoa so bundles will build
[wxWidgets.git] / src / cocoa / toplevel.mm
index c4bfd67a419ab4a83e1a03ee9f30b43821f0f9cb..4c138ca8f05bc8d186e63a8ae63f38633c90276e 100644 (file)
@@ -98,12 +98,8 @@ bool wxTopLevelWindowCocoa::Create(wxWindow *parent,
 wxTopLevelWindowCocoa::~wxTopLevelWindowCocoa()
 {
     wxAutoNSAutoreleasePool pool;
-    // Hand ownership of the content view to wxWindow so it can destroy
-    // itself properly.
-    NSView *view = [m_cocoaNSView retain];
+    DestroyChildren();
     SetNSWindow(NULL);
-    SetNSView(view);
-    [view release];
 }
 
 // ----------------------------------------------------------------------------