1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/osx/core/private.h
3 // Purpose: Private declarations: as this header is only included by
4 // wxWidgets itself, it may contain identifiers which don't start
6 // Author: Stefan Csomor
10 // Copyright: (c) Stefan Csomor
11 // Licence: wxWindows licence
12 /////////////////////////////////////////////////////////////////////////////
14 #ifndef _WX_PRIVATE_CORE_H_
15 #define _WX_PRIVATE_CORE_H_
19 #include <CoreFoundation/CoreFoundation.h>
21 #include "wx/osx/core/cfstring.h"
22 #include "wx/osx/core/cfdataref.h"
24 // Define helper macros allowing to insert small snippets of code to be
25 // compiled for high enough OS X version only: this shouldn't be abused for
26 // anything big but it's handy for e.g. specifying OS X 10.6-only protocols in
27 // the Objective C classes declarations when they're not supported under the
29 #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6
30 #define wxOSX_10_6_AND_LATER(x) x
32 #define wxOSX_10_6_AND_LATER(x)
35 #if !wxUSE_GUI || wxOSX_USE_COCOA_OR_CARBON
37 // Carbon functions are currently still used in wxOSX/Cocoa too (including
38 // wxBase part of it).
39 #include <Carbon/Carbon.h>
41 WXDLLIMPEXP_BASE
long UMAGetSystemVersion() ;
43 void WXDLLIMPEXP_CORE
wxMacStringToPascal( const wxString
&from
, unsigned char * to
);
44 wxString WXDLLIMPEXP_CORE
wxMacMakeStringFromPascal( const unsigned char * from
);
46 WXDLLIMPEXP_BASE wxString
wxMacFSRefToPath( const FSRef
*fsRef
, CFStringRef additionalPathComponent
= NULL
);
47 WXDLLIMPEXP_BASE OSStatus
wxMacPathToFSRef( const wxString
&path
, FSRef
*fsRef
);
48 WXDLLIMPEXP_BASE wxString
wxMacHFSUniStrToString( ConstHFSUniStr255Param uniname
);
55 #include <CoreGraphics/CoreGraphics.h>
57 #include <ApplicationServices/ApplicationServices.h>
60 #include "wx/bitmap.h"
61 #include "wx/window.h"
63 class WXDLLIMPEXP_CORE wxMacCGContextStateSaver
65 wxDECLARE_NO_COPY_CLASS(wxMacCGContextStateSaver
);
68 wxMacCGContextStateSaver( CGContextRef cg
)
71 CGContextSaveGState( cg
);
73 ~wxMacCGContextStateSaver()
75 CGContextRestoreGState( m_cg
);
81 class WXDLLIMPEXP_CORE wxDeferredObjectDeleter
: public wxObject
84 wxDeferredObjectDeleter( wxObject
* obj
) : m_obj(obj
)
87 virtual ~wxDeferredObjectDeleter()
97 WXDLLIMPEXP_CORE CGImageRef
wxMacCreateCGImageFromBitmap( const wxBitmap
& bitmap
);
99 WXDLLIMPEXP_CORE CGDataProviderRef
wxMacCGDataProviderCreateWithCFData( CFDataRef data
);
100 WXDLLIMPEXP_CORE CGDataConsumerRef
wxMacCGDataConsumerCreateWithCFData( CFMutableDataRef data
);
101 WXDLLIMPEXP_CORE CGDataProviderRef
wxMacCGDataProviderCreateWithMemoryBuffer( const wxMemoryBuffer
& buf
);
103 CGColorSpaceRef WXDLLIMPEXP_CORE
wxMacGetGenericRGBColorSpace(void);
107 extern wxWindow
* g_MacLastWindow
;
108 class wxNonOwnedWindow
;
110 // temporary typedef so that no additional casts are necessary within carbon code at the moment
119 WXDLLIMPEXP_CORE wxWindowMac
* wxFindWindowFromWXWidget(WXWidget inControl
);
122 typedef wxMacControl wxWidgetImplType
;
124 typedef wxWidgetImpl wxWidgetImplType
;
128 class wxMenuItemImpl
: public wxObject
131 wxMenuItemImpl( wxMenuItem
* peer
) : m_peer(peer
)
135 virtual ~wxMenuItemImpl() ;
136 virtual void SetBitmap( const wxBitmap
& bitmap
) = 0;
137 virtual void Enable( bool enable
) = 0;
138 virtual void Check( bool check
) = 0;
139 virtual void SetLabel( const wxString
& text
, wxAcceleratorEntry
*entry
) = 0;
140 virtual void Hide( bool hide
= true ) = 0;
142 virtual void * GetHMenuItem() = 0;
144 wxMenuItem
* GetWXPeer() { return m_peer
; }
146 static wxMenuItemImpl
* Create( wxMenuItem
* peer
, wxMenu
*pParentMenu
,
148 const wxString
& text
,
149 wxAcceleratorEntry
*entry
,
150 const wxString
& strHelp
,
154 // handle OS specific menu items if they weren't handled during normal processing
155 virtual bool DoDefault() { return false; }
159 DECLARE_ABSTRACT_CLASS(wxMenuItemImpl
)
162 class wxMenuImpl
: public wxObject
165 wxMenuImpl( wxMenu
* peer
) : m_peer(peer
)
169 virtual ~wxMenuImpl() ;
170 virtual void InsertOrAppend(wxMenuItem
*pItem
, size_t pos
) = 0;
171 virtual void Remove( wxMenuItem
*pItem
) = 0;
173 virtual void MakeRoot() = 0;
175 virtual void SetTitle( const wxString
& text
) = 0;
177 virtual WXHMENU
GetHMenu() = 0;
179 wxMenu
* GetWXPeer() { return m_peer
; }
181 virtual void PopUp( wxWindow
*win
, int x
, int y
) = 0;
183 static wxMenuImpl
* Create( wxMenu
* peer
, const wxString
& title
);
184 static wxMenuImpl
* CreateRootMenu( wxMenu
* peer
);
188 DECLARE_ABSTRACT_CLASS(wxMenuItemImpl
)
193 class WXDLLIMPEXP_CORE wxWidgetImpl
: public wxObject
196 wxWidgetImpl( wxWindowMac
* peer
, bool isRootControl
= false, bool isUserPane
= false );
198 virtual ~wxWidgetImpl();
202 bool IsRootControl() const { return m_isRootControl
; }
204 bool IsUserPane() const { return m_isUserPane
; }
206 wxWindowMac
* GetWXPeer() const { return m_wxPeer
; }
208 bool IsOk() const { return GetWXWidget() != NULL
; }
210 // not only the control itself, but also all its parents must be visible
211 // in order for this function to return true
212 virtual bool IsVisible() const = 0;
213 // set the visibility of this widget (maybe latent)
214 virtual void SetVisibility( bool visible
) = 0;
216 virtual bool ShowWithEffect(bool WXUNUSED(show
),
217 wxShowEffect
WXUNUSED(effect
),
218 unsigned WXUNUSED(timeout
))
223 virtual void Raise() = 0;
225 virtual void Lower() = 0;
227 virtual void ScrollRect( const wxRect
*rect
, int dx
, int dy
) = 0;
229 virtual WXWidget
GetWXWidget() const = 0;
231 virtual void SetBackgroundColour( const wxColour
& col
) = 0;
232 virtual bool SetBackgroundStyle(wxBackgroundStyle style
) = 0;
234 // all coordinates in native parent widget relative coordinates
235 virtual void GetContentArea( int &left
, int &top
, int &width
, int &height
) const = 0;
236 virtual void Move(int x
, int y
, int width
, int height
) = 0;
237 virtual void GetPosition( int &x
, int &y
) const = 0;
238 virtual void GetSize( int &width
, int &height
) const = 0;
239 virtual void SetControlSize( wxWindowVariant variant
) = 0;
240 virtual float GetContentScaleFactor() const
245 // the native coordinates may have an 'aura' for shadows etc, if this is the case the layout
246 // inset indicates on which insets the real control is drawn
247 virtual void GetLayoutInset(int &left
, int &top
, int &right
, int &bottom
) const
249 left
= top
= right
= bottom
= 0;
252 // native view coordinates are topleft to bottom right (flipped regarding CoreGraphics origin)
253 virtual bool IsFlipped() const { return true; }
255 virtual void SetNeedsDisplay( const wxRect
* where
= NULL
) = 0;
256 virtual bool GetNeedsDisplay() const = 0;
258 virtual bool NeedsFocusRect() const;
259 virtual void SetNeedsFocusRect( bool needs
);
261 virtual bool NeedsFrame() const;
262 virtual void SetNeedsFrame( bool needs
);
264 virtual bool CanFocus() const = 0;
265 // return true if successful
266 virtual bool SetFocus() = 0;
267 virtual bool HasFocus() const = 0;
269 virtual void RemoveFromParent() = 0;
270 virtual void Embed( wxWidgetImpl
*parent
) = 0;
272 virtual void SetDefaultButton( bool isDefault
) = 0;
273 virtual void PerformClick() = 0;
274 virtual void SetLabel( const wxString
& title
, wxFontEncoding encoding
) = 0;
275 #if wxUSE_MARKUP && wxOSX_USE_COCOA
276 virtual void SetLabelMarkup( const wxString
& WXUNUSED(markup
) ) { }
279 virtual void SetCursor( const wxCursor
& cursor
) = 0;
280 virtual void CaptureMouse() = 0;
281 virtual void ReleaseMouse() = 0;
283 virtual wxInt32
GetValue() const = 0;
284 virtual void SetValue( wxInt32 v
) = 0;
285 virtual wxBitmap
GetBitmap() const = 0;
286 virtual void SetBitmap( const wxBitmap
& bitmap
) = 0;
287 virtual void SetBitmapPosition( wxDirection dir
) = 0;
288 virtual void SetupTabs( const wxNotebook
¬ebook
) =0;
289 virtual void GetBestRect( wxRect
*r
) const = 0;
290 virtual bool IsEnabled() const = 0;
291 virtual void Enable( bool enable
) = 0;
292 virtual void SetMinimum( wxInt32 v
) = 0;
293 virtual void SetMaximum( wxInt32 v
) = 0;
294 virtual wxInt32
GetMinimum() const = 0;
295 virtual wxInt32
GetMaximum() const = 0;
296 virtual void PulseGauge() = 0;
297 virtual void SetScrollThumb( wxInt32 value
, wxInt32 thumbSize
) = 0;
299 virtual void SetFont( const wxFont
& font
, const wxColour
& foreground
, long windowStyle
, bool ignoreBlack
= true ) = 0;
301 virtual void SetToolTip(wxToolTip
* WXUNUSED(tooltip
)) { }
303 // is the clicked event sent AFTER the state already changed, so no additional
304 // state changing logic is required from the outside
305 virtual bool ButtonClickDidStateChange() = 0;
307 virtual void InstallEventHandler( WXWidget control
= NULL
) = 0;
309 // Mechanism used to keep track of whether a change should send an event
310 // Do SendEvents(false) when starting actions that would trigger programmatic events
311 // and SendEvents(true) at the end of the block.
312 virtual void SendEvents(bool shouldSendEvents
) { m_shouldSendEvents
= shouldSendEvents
; }
313 virtual bool ShouldSendEvents() { return m_shouldSendEvents
; }
315 // static methods for associating native controls and their implementations
318 FindFromWXWidget(WXWidget control
);
320 static void RemoveAssociations( wxWidgetImpl
* impl
);
322 static void Associate( WXWidget control
, wxWidgetImpl
*impl
);
324 static WXWidget
FindFocus();
326 // static creation methods, must be implemented by all toolkits
328 static wxWidgetImplType
* CreateUserPane( wxWindowMac
* wxpeer
,
335 static wxWidgetImplType
* CreateContentView( wxNonOwnedWindow
* now
) ;
337 static wxWidgetImplType
* CreateButton( wxWindowMac
* wxpeer
,
340 const wxString
& label
,
346 static wxWidgetImplType
* CreateDisclosureTriangle( wxWindowMac
* wxpeer
,
349 const wxString
& label
,
355 static wxWidgetImplType
* CreateStaticLine( wxWindowMac
* wxpeer
,
363 static wxWidgetImplType
* CreateGroupBox( wxWindowMac
* wxpeer
,
366 const wxString
& label
,
372 static wxWidgetImplType
* CreateStaticText( wxWindowMac
* wxpeer
,
375 const wxString
& label
,
381 static wxWidgetImplType
* CreateTextControl( wxTextCtrl
* wxpeer
,
384 const wxString
& content
,
390 static wxWidgetImplType
* CreateSearchControl( wxSearchCtrl
* wxpeer
,
393 const wxString
& content
,
399 static wxWidgetImplType
* CreateCheckBox( wxWindowMac
* wxpeer
,
402 const wxString
& label
,
408 static wxWidgetImplType
* CreateRadioButton( wxWindowMac
* wxpeer
,
411 const wxString
& label
,
417 static wxWidgetImplType
* CreateToggleButton( wxWindowMac
* wxpeer
,
420 const wxString
& label
,
426 static wxWidgetImplType
* CreateBitmapToggleButton( wxWindowMac
* wxpeer
,
429 const wxBitmap
& bitmap
,
435 static wxWidgetImplType
* CreateBitmapButton( wxWindowMac
* wxpeer
,
438 const wxBitmap
& bitmap
,
444 static wxWidgetImplType
* CreateTabView( wxWindowMac
* wxpeer
,
452 static wxWidgetImplType
* CreateGauge( wxWindowMac
* wxpeer
,
463 static wxWidgetImplType
* CreateSlider( wxWindowMac
* wxpeer
,
474 static wxWidgetImplType
* CreateSpinButton( wxWindowMac
* wxpeer
,
485 static wxWidgetImplType
* CreateScrollBar( wxWindowMac
* wxpeer
,
493 static wxWidgetImplType
* CreateChoice( wxWindowMac
* wxpeer
,
502 static wxWidgetImplType
* CreateListBox( wxWindowMac
* wxpeer
,
511 static wxWidgetImplType
* CreateComboBox( wxComboBox
* wxpeer
,
521 // converts from Toplevel-Content relative to local
522 static void Convert( wxPoint
*pt
, wxWidgetImpl
*from
, wxWidgetImpl
*to
);
524 bool m_isRootControl
;
526 wxWindowMac
* m_wxPeer
;
527 bool m_needsFocusRect
;
529 bool m_shouldSendEvents
;
531 DECLARE_ABSTRACT_CLASS(wxWidgetImpl
)
535 // the interface to be implemented eg by a listbox
538 class WXDLLIMPEXP_CORE wxListWidgetColumn
541 virtual ~wxListWidgetColumn() {}
544 class WXDLLIMPEXP_CORE wxListWidgetCellValue
547 wxListWidgetCellValue() {}
548 virtual ~wxListWidgetCellValue() {}
550 virtual void Set( CFStringRef value
) = 0;
551 virtual void Set( const wxString
& value
) = 0;
552 virtual void Set( int value
) = 0;
553 virtual void Check( bool check
);
555 virtual bool IsChecked() const;
556 virtual int GetIntValue() const = 0;
557 virtual wxString
GetStringValue() const = 0;
560 class WXDLLIMPEXP_CORE wxListWidgetImpl
563 wxListWidgetImpl() {}
564 virtual ~wxListWidgetImpl() { }
566 virtual wxListWidgetColumn
* InsertTextColumn( unsigned pos
, const wxString
& title
, bool editable
= false,
567 wxAlignment just
= wxALIGN_LEFT
, int defaultWidth
= -1) = 0 ;
568 virtual wxListWidgetColumn
* InsertCheckColumn( unsigned pos
, const wxString
& title
, bool editable
= false,
569 wxAlignment just
= wxALIGN_LEFT
, int defaultWidth
= -1) = 0 ;
573 // TODO will be replaced
574 virtual void ListDelete( unsigned int n
) = 0;
575 virtual void ListInsert( unsigned int n
) = 0;
576 virtual void ListClear() = 0;
580 virtual void ListDeselectAll() = 0;
581 virtual void ListSetSelection( unsigned int n
, bool select
, bool multi
) = 0;
582 virtual int ListGetSelection() const = 0;
583 virtual int ListGetSelections( wxArrayInt
& aSelections
) const = 0;
584 virtual bool ListIsSelected( unsigned int n
) const = 0;
588 virtual void ListScrollTo( unsigned int n
) = 0;
589 virtual void UpdateLine( unsigned int n
, wxListWidgetColumn
* col
= NULL
) = 0;
590 virtual void UpdateLineToEnd( unsigned int n
) = 0;
594 virtual unsigned int ListGetCount() const = 0;
596 virtual int DoListHitTest( const wxPoint
& inpoint
) const = 0;
600 // interface to be implemented by a textcontrol
603 class WXDLLIMPEXP_FWD_CORE wxTextAttr
;
604 class WXDLLIMPEXP_FWD_CORE wxTextEntry
;
606 // common interface for all implementations
607 class WXDLLIMPEXP_CORE wxTextWidgetImpl
611 // Any widgets implementing this interface must be associated with a
612 // wxTextEntry so instead of requiring the derived classes to implement
613 // another (pure) virtual function, just take the pointer to this entry in
614 // our ctor and implement GetTextEntry() ourselves.
615 wxTextWidgetImpl(wxTextEntry
*entry
) : m_entry(entry
) {}
617 virtual ~wxTextWidgetImpl() {}
619 wxTextEntry
*GetTextEntry() const { return m_entry
; }
621 virtual bool CanFocus() const { return true; }
623 virtual wxString
GetStringValue() const = 0 ;
624 virtual void SetStringValue( const wxString
&val
) = 0 ;
625 virtual void SetSelection( long from
, long to
) = 0 ;
626 virtual void GetSelection( long* from
, long* to
) const = 0 ;
627 virtual void WriteText( const wxString
& str
) = 0 ;
629 virtual bool GetStyle( long position
, wxTextAttr
& style
);
630 virtual void SetStyle( long start
, long end
, const wxTextAttr
& style
) ;
631 virtual void Copy() ;
633 virtual void Paste() ;
634 virtual bool CanPaste() const ;
635 virtual void SetEditable( bool editable
) ;
636 virtual long GetLastPosition() const ;
637 virtual void Replace( long from
, long to
, const wxString
&str
) ;
638 virtual void Remove( long from
, long to
) ;
641 virtual bool HasOwnContextMenu() const
644 virtual bool SetupCursor( const wxPoint
& WXUNUSED(pt
) )
647 virtual void Clear() ;
648 virtual bool CanUndo() const;
649 virtual void Undo() ;
650 virtual bool CanRedo() const;
651 virtual void Redo() ;
652 virtual int GetNumberOfLines() const ;
653 virtual long XYToPosition(long x
, long y
) const;
654 virtual bool PositionToXY(long pos
, long *x
, long *y
) const ;
655 virtual void ShowPosition(long WXUNUSED(pos
)) ;
656 virtual int GetLineLength(long lineNo
) const ;
657 virtual wxString
GetLineText(long lineNo
) const ;
658 virtual void CheckSpelling(bool WXUNUSED(check
)) { }
660 virtual wxSize
GetBestSize() const { return wxDefaultSize
; }
662 virtual bool SetHint(const wxString
& WXUNUSED(hint
)) { return false; }
664 wxTextEntry
* const m_entry
;
666 wxDECLARE_NO_COPY_CLASS(wxTextWidgetImpl
);
669 // common interface for all implementations
670 class WXDLLIMPEXP_CORE wxComboWidgetImpl
674 wxComboWidgetImpl() {}
676 virtual ~wxComboWidgetImpl() {}
678 virtual int GetSelectedItem() const { return -1; };
679 virtual void SetSelectedItem(int WXUNUSED(item
)) {};
681 virtual int GetNumberOfItems() const { return -1; };
683 virtual void InsertItem(int WXUNUSED(pos
), const wxString
& WXUNUSED(item
)) {}
685 virtual void RemoveItem(int WXUNUSED(pos
)) {}
687 virtual void Clear() {}
689 virtual wxString
GetStringAtIndex(int WXUNUSED(pos
)) const { return wxEmptyString
; }
691 virtual int FindString(const wxString
& WXUNUSED(text
)) const { return -1; }
695 // common interface for buttons
702 virtual ~wxButtonImpl(){}
704 virtual void SetPressedBitmap( const wxBitmap
& bitmap
) = 0;
708 // common interface for search controls
711 class wxSearchWidgetImpl
714 wxSearchWidgetImpl(){}
715 virtual ~wxSearchWidgetImpl(){}
717 // search field options
718 virtual void ShowSearchButton( bool show
) = 0;
719 virtual bool IsSearchButtonVisible() const = 0;
721 virtual void ShowCancelButton( bool show
) = 0;
722 virtual bool IsCancelButtonVisible() const = 0;
724 virtual void SetSearchMenu( wxMenu
* menu
) = 0;
726 virtual void SetDescriptiveText(const wxString
& text
) = 0;
730 // toplevel window implementation class
733 class wxNonOwnedWindowImpl
: public wxObject
736 wxNonOwnedWindowImpl( wxNonOwnedWindow
* nonownedwnd
) : m_wxPeer(nonownedwnd
)
739 wxNonOwnedWindowImpl()
742 virtual ~wxNonOwnedWindowImpl()
746 virtual void WillBeDestroyed()
750 virtual void Create( wxWindow
* parent
, const wxPoint
& pos
, const wxSize
& size
,
751 long style
, long extraStyle
, const wxString
& name
) = 0;
754 virtual WXWindow
GetWXWindow() const = 0;
764 virtual bool Show(bool WXUNUSED(show
))
769 virtual bool ShowWithEffect(bool show
, wxShowEffect
WXUNUSED(effect
), unsigned WXUNUSED(timeout
))
774 virtual void Update()
778 virtual bool SetTransparent(wxByte
WXUNUSED(alpha
))
783 virtual bool SetBackgroundColour(const wxColour
& WXUNUSED(col
) )
788 virtual void SetExtraStyle( long WXUNUSED(exStyle
) )
792 virtual void SetWindowStyleFlag( long WXUNUSED(style
) )
796 virtual bool SetBackgroundStyle(wxBackgroundStyle
WXUNUSED(style
))
801 virtual bool CanSetTransparent()
806 virtual void GetContentArea( int &left
, int &top
, int &width
, int &height
) const = 0;
807 virtual void MoveWindow(int x
, int y
, int width
, int height
) = 0;
808 virtual void GetPosition( int &x
, int &y
) const = 0;
809 virtual void GetSize( int &width
, int &height
) const = 0;
811 virtual bool SetShape(const wxRegion
& WXUNUSED(region
))
816 virtual void SetTitle( const wxString
& title
, wxFontEncoding encoding
) = 0;
818 virtual bool IsMaximized() const = 0;
820 virtual bool IsIconized() const= 0;
822 virtual void Iconize( bool iconize
)= 0;
824 virtual void Maximize(bool maximize
) = 0;
826 virtual bool IsFullScreen() const= 0;
828 virtual void ShowWithoutActivating() { Show(true); }
830 virtual bool ShowFullScreen(bool show
, long style
)= 0;
832 virtual void RequestUserAttention(int flags
) = 0;
834 virtual void ScreenToWindow( int *x
, int *y
) = 0;
836 virtual void WindowToScreen( int *x
, int *y
) = 0;
838 virtual bool IsActive() = 0;
840 wxNonOwnedWindow
* GetWXPeer() { return m_wxPeer
; }
842 static wxNonOwnedWindowImpl
*
843 FindFromWXWindow(WXWindow window
);
845 static void RemoveAssociations( wxNonOwnedWindowImpl
* impl
);
847 static void Associate( WXWindow window
, wxNonOwnedWindowImpl
*impl
);
849 // static creation methods, must be implemented by all toolkits
851 static wxNonOwnedWindowImpl
* CreateNonOwnedWindow( wxNonOwnedWindow
* wxpeer
, wxWindow
* parent
, WXWindow native
) ;
853 static wxNonOwnedWindowImpl
* CreateNonOwnedWindow( wxNonOwnedWindow
* wxpeer
, wxWindow
* parent
, const wxPoint
& pos
, const wxSize
& size
,
854 long style
, long extraStyle
, const wxString
& name
) ;
856 virtual void SetModified(bool WXUNUSED(modified
)) { }
857 virtual bool IsModified() const { return false; }
860 virtual CGFloat
GetWindowLevel() const { return 0.0; }
862 virtual CGWindowLevel
GetWindowLevel() const { return kCGNormalWindowLevel
; }
864 virtual void RestoreWindowLevel() {}
866 wxNonOwnedWindow
* m_wxPeer
;
867 DECLARE_ABSTRACT_CLASS(wxNonOwnedWindowImpl
)
872 //---------------------------------------------------------------------------
873 // cocoa bridging utilities
874 //---------------------------------------------------------------------------
876 bool wxMacInitCocoa();
878 class WXDLLIMPEXP_CORE wxMacAutoreleasePool
881 wxMacAutoreleasePool();
882 ~wxMacAutoreleasePool();
889 void wxMacCocoaRelease( void* obj
);
890 void wxMacCocoaAutorelease( void* obj
);
891 void* wxMacCocoaRetain( void* obj
);
895 // _WX_PRIVATE_CORE_H_