]> git.saurik.com Git - wxWidgets.git/commitdiff
In the object destructor, Disassociate the object from its Cocoa counterpart
authorDavid Elliott <dfe@tgwbd.org>
Mon, 14 Jul 2003 03:04:37 +0000 (03:04 +0000)
committerDavid Elliott <dfe@tgwbd.org>
Mon, 14 Jul 2003 03:04:37 +0000 (03:04 +0000)
but leave m_cocoaNSWindow intact so base class destructor can use it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21946 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/cocoa/dialog.mm

index 59cf2fb0a2103642e2310115c207a39fe3486133..3a3625556da6cfe386d9d6e9cb496ca98ede44af 100644 (file)
@@ -76,7 +76,7 @@ wxDialog::~wxDialog()
     wxLogDebug("Destroying");
     // setReleasedWhenClosed: NO
     [m_cocoaNSWindow close];
-    SetNSPanel(NULL);
+    DisassociateNSPanel(m_cocoaNSWindow);
 }
 
 void wxDialog::Cocoa_close(void)