X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3bf033e4212abaee351022f3b89bed69c563e834..9d529fa05c2bef6aa4ae9f08b39bb7c0a4fe5c59:/include/wx/mac/carbon/app.h diff --git a/include/wx/mac/carbon/app.h b/include/wx/mac/carbon/app.h index 0b253025bf..492a713004 100644 --- a/include/wx/mac/carbon/app.h +++ b/include/wx/mac/carbon/app.h @@ -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 ;