This commit is huge but there are no non-white-space changes in it. Some files containing third-party sources (src/msw/wince/time.cpp, src/x11/pango*.cpp) were left unchanged. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61724 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
		
			
				
	
	
		
			33 lines
		
	
	
		
			832 B
		
	
	
	
		
			Objective-C
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			832 B
		
	
	
	
		
			Objective-C
		
	
	
	
	
	
| /////////////////////////////////////////////////////////////////////////////
 | |
| // Name:        wx/cocoa/autorelease.h
 | |
| // Purpose:     Automatic NSAutoreleasePool functionality
 | |
| // Author:      David Elliott
 | |
| // Modified by:
 | |
| // Created:     2003/07/11
 | |
| // RCS-ID:      $Id$
 | |
| // Copyright:   (c) 2003 David Elliott <dfe@cox.net>
 | |
| // Licence:     wxWindows licence
 | |
| /////////////////////////////////////////////////////////////////////////////
 | |
| 
 | |
| #ifndef __WX_COCOA_AUTORELEASE_H__
 | |
| #define __WX_COCOA_AUTORELEASE_H__
 | |
| 
 | |
| #import <Foundation/NSAutoreleasePool.h>
 | |
| 
 | |
| class wxAutoNSAutoreleasePool
 | |
| {
 | |
| public:
 | |
|     wxAutoNSAutoreleasePool()
 | |
|     {
 | |
|         m_pool = [[NSAutoreleasePool alloc] init];
 | |
|     }
 | |
|     ~wxAutoNSAutoreleasePool()
 | |
|     {
 | |
|         [m_pool release];
 | |
|     }
 | |
| protected:
 | |
|     NSAutoreleasePool *m_pool;
 | |
| };
 | |
| 
 | |
| #endif //__WX_COCOA_AUTORELEASE_H__
 |