[KLF Backend][KLF Tools][KLF Home]
KLatexFormula Project
klfmacdefs.h
Go to the documentation of this file.
1 /***************************************************************************
2  * file $FILENAME$
3  * This file is part of the KLatexFormula Project.
4  * Copyright (C) 2012 by Philippe Faist
5  * philippe.faist at bluewin.ch
6  * *
7  * This program is free software; you can redistribute it and/or modify *
8  * it under the terms of the GNU General Public License as published by *
9  * the Free Software Foundation; either version 2 of the License, or *
10  * (at your option) any later version. *
11  * *
12  * This program is distributed in the hope that it will be useful, *
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
15  * GNU General Public License for more details. *
16  * *
17  * You should have received a copy of the GNU General Public License *
18  * along with this program; if not, write to the *
19  * Free Software Foundation, Inc., *
20  * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
21  ***************************************************************************/
22 /* $Id: klfmacdefs.h 978 2016-12-31 05:16:11Z phfaist $ */
23 
24 #ifndef KLFMACDEFS_H
25 #define KLFMACDEFS_H
26 
27 // this needs to be included _after_ inclusion of mac cocoa stuff
28 
30 {
31 public:
33  {
34  pool = [[NSAutoreleasePool alloc] init];
35  }
37  {
38  [pool drain];
39  }
40 
41 private:
42  NSAutoreleasePool *pool;
43 };
44 
45 #define MAC_AUTORELEASE_BLOCK \
46  KLFMacAutoReleaseBlock __klf_mac_autorelease_block;
47 
48 
49 
50 
51 
52 
53 #endif

Generated by doxygen 1.8.13