stlab.adobe.com Adobe Systems Incorporated

macintosh_cocoa_bridge.hpp

Go to the documentation of this file.
00001 /*
00002     Copyright 2005-2007 Adobe Systems Incorporated
00003     Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt
00004     or a copy at http://stlab.adobe.com/licenses.html)
00005 */
00006 
00007 /****************************************************************************************************/
00008 
00009 #ifndef ADOBE_CARBON_COCOA_BRIDGE_HPP
00010 #define ADOBE_CARBON_COCOA_BRIDGE_HPP
00011 
00012 /****************************************************************************************************/
00013 
00014 #include <Cocoa/Cocoa.h>
00015 
00016 /****************************************************************************************************/
00017 
00018 #ifdef __cplusplus
00019 extern "C" {
00020 #endif
00021 
00022 /****************************************************************************************************/
00023 
00024 // You must call this routine before you make any Cocoa calls from your Carbon app.
00025 // You may safely call this routine more than once.
00026 
00027 void carbon_cocoa_bridge_initialize();
00028 
00029 /****************************************************************************************************/
00030 
00031 #ifdef __cplusplus
00032 } // extern "C"
00033 #endif
00034 
00035 /****************************************************************************************************/
00036 #ifdef __cplusplus
00037 namespace adobe {
00038 
00039 /****************************************************************************************************/
00040 
00041 class objc_auto_release_pool_t
00042 {
00043 public:
00044     explicit objc_auto_release_pool_t(bool initialize_bridge = true);
00045 
00046     ~objc_auto_release_pool_t();
00047 
00048 private:
00049     objc_auto_release_pool_t(const objc_auto_release_pool_t& rhs);
00050     objc_auto_release_pool_t& operator=(const objc_auto_release_pool_t& rhs);
00051 
00052     ::NSAutoreleasePool* pool_m;
00053 };
00054 
00055 /****************************************************************************************************/
00056 
00057 } // namespace adobe
00058 #endif
00059 /****************************************************************************************************/
00060 
00061 // ADOBE_CARBON_COCOA_BRIDGE_HPP
00062 #endif
00063 
00064 /****************************************************************************************************/

Copyright © 2006-2007 Adobe Systems Incorporated.

Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy.

Search powered by Google