autorelease.h

来自「很牛的GUI源码wxWidgets-2.8.0.zip 可在多种平台下运行.」· C头文件 代码 · 共 33 行

H
33
字号
/////////////////////////////////////////////////////////////////////////////// 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 + =
减小字号Ctrl + -
显示快捷键?