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:
parent
eb537cfb1c
commit
bed6fe0c16
@ -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;
|
||||
|
||||
|
@ -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)]);
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user