Use the new wx/cocoa/autorelease.h header.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21951 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -31,6 +31,7 @@
|
|||||||
#include "wx/module.h"
|
#include "wx/module.h"
|
||||||
|
|
||||||
#include "wx/cocoa/ObjcPose.h"
|
#include "wx/cocoa/ObjcPose.h"
|
||||||
|
#include "wx/cocoa/autorelease.h"
|
||||||
|
|
||||||
#if wxUSE_WX_RESOURCES
|
#if wxUSE_WX_RESOURCES
|
||||||
# include "wx/resource.h"
|
# include "wx/resource.h"
|
||||||
@@ -97,21 +98,6 @@ wxPoseAsInitializer *wxPoseAsInitializer::sm_first = NULL;
|
|||||||
@end // wxPoserNSApplication
|
@end // wxPoserNSApplication
|
||||||
WX_IMPLEMENT_POSER(wxPoserNSApplication);
|
WX_IMPLEMENT_POSER(wxPoserNSApplication);
|
||||||
|
|
||||||
class wxAutoNSAutoreleasePool
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxAutoNSAutoreleasePool()
|
|
||||||
{
|
|
||||||
m_pool = [[NSAutoreleasePool alloc] init];
|
|
||||||
}
|
|
||||||
~wxAutoNSAutoreleasePool()
|
|
||||||
{
|
|
||||||
[m_pool release];
|
|
||||||
}
|
|
||||||
protected:
|
|
||||||
NSAutoreleasePool *m_pool;
|
|
||||||
};
|
|
||||||
|
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
// functions
|
// functions
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
|
Reference in New Issue
Block a user