MythTV
master
mythtv
libs
libmythbase
platforms
mythcocoautils.h
Go to the documentation of this file.
1
#ifndef MYTHCOCOAUTILS_H
2
#define MYTHCOCOAUTILS_H
3
4
// MythTV
5
#include "
mythbaseexp.h
"
6
7
// OSX
8
#import "ApplicationServices/ApplicationServices.h"
9
10
MBASE_PUBLIC
void
*
CreateOSXCocoaPool
(
void
);
11
MBASE_PUBLIC
void
DeleteOSXCocoaPool
(
void
*&);
12
13
class
CocoaAutoReleasePool
14
{
15
public
:
16
CocoaAutoReleasePool
() {
m_pool
=
CreateOSXCocoaPool
(); }
17
~CocoaAutoReleasePool
() {
DeleteOSXCocoaPool
(
m_pool
); }
18
19
private
:
20
void
*
m_pool
;
21
};
22
23
#endif // MYTHCOCOAUTILS_H
CreateOSXCocoaPool
MBASE_PUBLIC void * CreateOSXCocoaPool(void)
Definition:
mythcocoautils.mm:16
mythbaseexp.h
CocoaAutoReleasePool::~CocoaAutoReleasePool
~CocoaAutoReleasePool()
Definition:
mythcocoautils.h:17
DeleteOSXCocoaPool
MBASE_PUBLIC void DeleteOSXCocoaPool(void *&)
Definition:
mythcocoautils.mm:35
MBASE_PUBLIC
#define MBASE_PUBLIC
Definition:
mythbaseexp.h:15
CocoaAutoReleasePool::CocoaAutoReleasePool
CocoaAutoReleasePool()
Definition:
mythcocoautils.h:16
CocoaAutoReleasePool
Definition:
mythcocoautils.h:13
CocoaAutoReleasePool::m_pool
void * m_pool
Definition:
mythcocoautils.h:20
Generated on Wed Feb 26 2025 03:17:54 for MythTV by
1.8.17