#include "wx/app.h"
#endif //WX_PRECOMP
+#include "wx/cocoa/autorelease.h"
+
#import <AppKit/NSView.h>
#import <AppKit/NSWindow.h>
// ----------------------------------------------------------------------------
long style,
const wxString& name)
{
+ wxAutoNSAutoreleasePool pool;
wxTopLevelWindows.Append(this);
if(!CreateBase(parent,winid,pos,size,style,wxDefaultValidator,name))
wxTopLevelWindowCocoa::~wxTopLevelWindowCocoa()
{
+ wxAutoNSAutoreleasePool pool;
// Hand ownership of the content view to wxWindow so it can destroy
// itself properly.
NSView *view = [m_cocoaNSView retain];
bool wxTopLevelWindowCocoa::Show(bool show)
{
+ wxAutoNSAutoreleasePool pool;
if(show)
[m_cocoaNSWindow makeKeyAndOrderFront:m_cocoaNSWindow];
else