]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/mac/carbon/app.h
adding an autorelease capability (got weird crashes when deleting tools from a toolba...
[wxWidgets.git] / include / wx / mac / carbon / app.h
index 0b253025bff3198b8306f2375ff5a7609a9a72a3..492a71300478060951ca0c10ccd4df30caf7e619 100644 (file)
@@ -75,6 +75,10 @@ public:
     void MacSetCurrentEvent( WXEVENTREF event , WXEVENTHANDLERCALLREF handler )
     { m_macCurrentEvent = event ; m_macCurrentEventHandlerCallRef = handler ; }
 
+    // adding a CFType object to be released only at the end of the current event cycle (increases the
+    // refcount of the object passed), needed in case we are in the middle of an event concering an object
+    // we want to delete and cannot do it immediately
+    void                  MacAddToAutorelease( void* cfrefobj );
 public:
     static wxWindow*      s_captureWindow ;
     static long           s_lastModifiers ;