📄 autorelease.h
字号:
/////////////////////////////////////////////////////////////////////////////// Name: wx/cocoa/autorelease.h// Purpose: Automatic NSAutoreleasePool functionality// Author: David Elliott// Modified by: // Created: 2003/07/11// RCS-ID: $Id: autorelease.h,v 1.3 2004/05/23 20:50:42 JS Exp $// 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__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -