#include "wx/settings.h"
#include "wx/log.h"
+#include "wx/cocoa/autorelease.h"
+
#import <AppKit/NSPanel.h>
#import <AppKit/NSApplication.h>
long style,
const wxString& name)
{
+ wxAutoNSAutoreleasePool pool;
wxTopLevelWindows.Append(this);
if(!CreateBase(parent,winid,pos,size,style,wxDefaultValidator,name))
wxLogDebug("Destroying");
// setReleasedWhenClosed: NO
[m_cocoaNSWindow close];
- SetNSPanel(NULL);
+ DisassociateNSPanel(m_cocoaNSWindow);
}
void wxDialog::Cocoa_close(void)
{
if(show)
{
+ wxAutoNSAutoreleasePool pool;
wxModalDialogs.Append(this);
wxLogDebug("runModal");
[wxTheApp->GetNSApplication() runModalForWindow:m_cocoaNSWindow];