Wrap some functions with wxAutoNSAutoreleasePool
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24871 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -17,6 +17,7 @@
|
|||||||
#endif //WX_PRECOMP
|
#endif //WX_PRECOMP
|
||||||
|
|
||||||
#include "wx/cocoa/string.h"
|
#include "wx/cocoa/string.h"
|
||||||
|
#include "wx/cocoa/autorelease.h"
|
||||||
#include "wx/cocoa/NSTableDataSource.h"
|
#include "wx/cocoa/NSTableDataSource.h"
|
||||||
|
|
||||||
#import <Foundation/NSArray.h>
|
#import <Foundation/NSArray.h>
|
||||||
@@ -37,6 +38,7 @@ bool wxListBox::Create(wxWindow *parent, wxWindowID winid,
|
|||||||
const wxValidator& validator,
|
const wxValidator& validator,
|
||||||
const wxString& name)
|
const wxString& name)
|
||||||
{
|
{
|
||||||
|
wxAutoNSAutoreleasePool pool;
|
||||||
if(!CreateControl(parent,winid,pos,size,style,validator,name))
|
if(!CreateControl(parent,winid,pos,size,style,validator,name))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
@@ -15,6 +15,8 @@
|
|||||||
#endif //WX_PRECOMP
|
#endif //WX_PRECOMP
|
||||||
#include "wx/statline.h"
|
#include "wx/statline.h"
|
||||||
|
|
||||||
|
#include "wx/cocoa/autorelease.h"
|
||||||
|
|
||||||
#import <AppKit/NSBox.h>
|
#import <AppKit/NSBox.h>
|
||||||
|
|
||||||
IMPLEMENT_DYNAMIC_CLASS(wxStaticLine, wxControl)
|
IMPLEMENT_DYNAMIC_CLASS(wxStaticLine, wxControl)
|
||||||
@@ -28,6 +30,7 @@ bool wxStaticLine::Create(wxWindow *parent, wxWindowID winid,
|
|||||||
long style,
|
long style,
|
||||||
const wxString& name)
|
const wxString& name)
|
||||||
{
|
{
|
||||||
|
wxAutoNSAutoreleasePool pool;
|
||||||
if(!CreateControl(parent,winid,pos,size,style,wxDefaultValidator,name))
|
if(!CreateControl(parent,winid,pos,size,style,wxDefaultValidator,name))
|
||||||
return false;
|
return false;
|
||||||
SetNSView([[NSBox alloc] initWithFrame: MakeDefaultNSRect(size)]);
|
SetNSView([[NSBox alloc] initWithFrame: MakeDefaultNSRect(size)]);
|
||||||
|
@@ -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)
|
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);
|
// wxLogDebug("wxWindow=%p::DoMoveWindow(%d,%d,%d,%d)",this,x,y,width,height);
|
||||||
|
|
||||||
NSView *nsview = GetNSViewForSuperview();
|
NSView *nsview = GetNSViewForSuperview();
|
||||||
|
Reference in New Issue
Block a user