]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/cocoa/autorelease.h
Fix wxPropertyGrid::GetPropertyRect when the last item is collapsed.
[wxWidgets.git] / include / wx / cocoa / autorelease.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/cocoa/autorelease.h
3// Purpose: Automatic NSAutoreleasePool functionality
4// Author: David Elliott
5// Modified by:
6// Created: 2003/07/11
7// Copyright: (c) 2003 David Elliott <dfe@cox.net>
8// Licence: wxWindows licence
9/////////////////////////////////////////////////////////////////////////////
10
11#ifndef __WX_COCOA_AUTORELEASE_H__
12#define __WX_COCOA_AUTORELEASE_H__
13
14#import <Foundation/NSAutoreleasePool.h>
15
16class wxAutoNSAutoreleasePool
17{
18public:
19 wxAutoNSAutoreleasePool()
20 {
21 m_pool = [[NSAutoreleasePool alloc] init];
22 }
23 ~wxAutoNSAutoreleasePool()
24 {
25 [m_pool release];
26 }
27protected:
28 NSAutoreleasePool *m_pool;
29};
30
31#endif //__WX_COCOA_AUTORELEASE_H__