]> git.saurik.com Git - wxWidgets.git/commitdiff
Wrap some functions with wxAutoNSAutoreleasePool
authorDavid Elliott <dfe@tgwbd.org>
Mon, 15 Dec 2003 16:23:29 +0000 (16:23 +0000)
committerDavid Elliott <dfe@tgwbd.org>
Mon, 15 Dec 2003 16:23:29 +0000 (16:23 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24871 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/cocoa/listbox.mm
src/cocoa/statline2.mm
src/cocoa/window.mm

index 5e9239d031377aa48a61f6ac6d56a1f447dd45d6..2f35c368cdcc831ac45f13649dae8cd77731b637 100644 (file)
@@ -17,6 +17,7 @@
 #endif //WX_PRECOMP
 
 #include "wx/cocoa/string.h"
+#include "wx/cocoa/autorelease.h"
 #include "wx/cocoa/NSTableDataSource.h"
 
 #import <Foundation/NSArray.h>
@@ -37,6 +38,7 @@ bool wxListBox::Create(wxWindow *parent, wxWindowID winid,
             const wxValidator& validator,
             const wxString& name)
 {
+    wxAutoNSAutoreleasePool pool;
     if(!CreateControl(parent,winid,pos,size,style,validator,name))
         return false;
 
index 15472fb1ff5d9dd6a1829858bd08cfc5b1e4e0e2..283ca293a8d98154efcfe4a525934f197d56f286 100644 (file)
@@ -15,6 +15,8 @@
 #endif //WX_PRECOMP
 #include "wx/statline.h"
 
+#include "wx/cocoa/autorelease.h"
+
 #import <AppKit/NSBox.h>
 
 IMPLEMENT_DYNAMIC_CLASS(wxStaticLine, wxControl)
@@ -28,6 +30,7 @@ bool wxStaticLine::Create(wxWindow *parent, wxWindowID winid,
            long style,
            const wxString& name)
 {
+    wxAutoNSAutoreleasePool pool;
     if(!CreateControl(parent,winid,pos,size,style,wxDefaultValidator,name))
         return false;
     SetNSView([[NSBox alloc] initWithFrame: MakeDefaultNSRect(size)]);
index 4b3373a4b7130d95cb0b04f1406f111cb76ae4ba..1ce1295c5052ba06179960da8248cd372cb4e887 100644 (file)
@@ -568,6 +568,7 @@ void wxWindowCocoa::DoSetSize(int x, int y, int width, int height, int sizeFlags
 
 void wxWindowCocoa::DoMoveWindow(int x, int y, int width, int height)
 {
+    wxAutoNSAutoreleasePool pool;
 //    wxLogDebug("wxWindow=%p::DoMoveWindow(%d,%d,%d,%d)",this,x,y,width,height);
 
     NSView *nsview = GetNSViewForSuperview();