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 );
198 virtual ~wxWidgetImpl();
202 bool IsRootControl() const { return m_isRootControl
; }
204 wxWindowMac
* GetWXPeer() const { return m_wxPeer
; }
206 bool IsOk() const { return GetWXWidget() != NULL
; }
208 // not only the control itself, but also all its parents must be visible
209 // in order for this function to return true
210 virtual bool IsVisible() const = 0;
211 // set the visibility of this widget (maybe latent)
212 virtual void SetVisibility( bool visible
) = 0;
214 virtual bool ShowWithEffect(bool WXUNUSED(show
),
215 wxShowEffect
WXUNUSED(effect
),
216 unsigned WXUNUSED(timeout
))
221 virtual void Raise() = 0;
223 virtual void Lower() = 0;
225 virtual void ScrollRect( const wxRect
*rect
, int dx
, int dy
) = 0;
227 virtual WXWidget
GetWXWidget() const = 0;
229 virtual void SetBackgroundColour( const wxColour
& col
) = 0;
230 virtual bool SetBackgroundStyle(wxBackgroundStyle style
) = 0;
232 // all coordinates in native parent widget relative coordinates
233 virtual void GetContentArea( int &left
, int &top
, int &width
, int &height
) const = 0;
234 virtual void Move(int x
, int y
, int width
, int height
) = 0;
235 virtual void GetPosition( int &x
, int &y
) const = 0;
236 virtual void GetSize( int &width
, int &height
) const = 0;
237 virtual void SetControlSize( wxWindowVariant variant
) = 0;
238 virtual float GetContentScaleFactor() const
243 // the native coordinates may have an 'aura' for shadows etc, if this is the case the layout
244 // inset indicates on which insets the real control is drawn
245 virtual void GetLayoutInset(int &left
, int &top
, int &right
, int &bottom
) const
247 left
= top
= right
= bottom
= 0;
250 // native view coordinates are topleft to bottom right (flipped regarding CoreGraphics origin)
251 virtual bool IsFlipped() const { return true; }
253 virtual void SetNeedsDisplay( const wxRect
* where
= NULL
) = 0;
254 virtual bool GetNeedsDisplay() const = 0;
256 virtual bool NeedsFocusRect() const;
257 virtual void SetNeedsFocusRect( bool needs
);
259 virtual bool NeedsFrame() const;
260 virtual void SetNeedsFrame( bool needs
);
262 virtual bool CanFocus() const = 0;
263 // return true if successful
264 virtual bool SetFocus() = 0;
265 virtual bool HasFocus() const = 0;
267 virtual void RemoveFromParent() = 0;
268 virtual void Embed( wxWidgetImpl
*parent
) = 0;
270 virtual void SetDefaultButton( bool isDefault
) = 0;
271 virtual void PerformClick() = 0;
272 virtual void SetLabel( const wxString
& title
, wxFontEncoding encoding
) = 0;
273 #if wxUSE_MARKUP && wxOSX_USE_COCOA
274 virtual void SetLabelMarkup( const wxString
& WXUNUSED(markup
) ) { }
277 virtual void SetCursor( const wxCursor
& cursor
) = 0;
278 virtual void CaptureMouse() = 0;
279 virtual void ReleaseMouse() = 0;
281 virtual wxInt32
GetValue() const = 0;
282 virtual void SetValue( wxInt32 v
) = 0;
283 virtual wxBitmap
GetBitmap() const = 0;
284 virtual void SetBitmap( const wxBitmap
& bitmap
) = 0;
285 virtual void SetBitmapPosition( wxDirection dir
) = 0;
286 virtual void SetupTabs( const wxNotebook
¬ebook
) =0;
287 virtual void GetBestRect( wxRect
*r
) const = 0;
288 virtual bool IsEnabled() const = 0;
289 virtual void Enable( bool enable
) = 0;
290 virtual void SetMinimum( wxInt32 v
) = 0;
291 virtual void SetMaximum( wxInt32 v
) = 0;
292 virtual wxInt32
GetMinimum() const = 0;
293 virtual wxInt32
GetMaximum() const = 0;
294 virtual void PulseGauge() = 0;
295 virtual void SetScrollThumb( wxInt32 value
, wxInt32 thumbSize
) = 0;
297 virtual void SetFont( const wxFont
& font
, const wxColour
& foreground
, long windowStyle
, bool ignoreBlack
= true ) = 0;
299 virtual void SetToolTip(wxToolTip
* WXUNUSED(tooltip
)) { }
301 // is the clicked event sent AFTER the state already changed, so no additional
302 // state changing logic is required from the outside
303 virtual bool ButtonClickDidStateChange() = 0;
305 virtual void InstallEventHandler( WXWidget control
= NULL
) = 0;
307 // Mechanism used to keep track of whether a change should send an event
308 // Do SendEvents(false) when starting actions that would trigger programmatic events
309 // and SendEvents(true) at the end of the block.
310 virtual void SendEvents(bool shouldSendEvents
) { m_shouldSendEvents
= shouldSendEvents
; }
311 virtual bool ShouldSendEvents() { return m_shouldSendEvents
; }
313 // static methods for associating native controls and their implementations
316 FindFromWXWidget(WXWidget control
);
318 static void RemoveAssociations( wxWidgetImpl
* impl
);
320 static void Associate( WXWidget control
, wxWidgetImpl
*impl
);
322 static WXWidget
FindFocus();
324 // static creation methods, must be implemented by all toolkits
326 static wxWidgetImplType
* CreateUserPane( wxWindowMac
* wxpeer
,
333 static wxWidgetImplType
* CreateContentView( wxNonOwnedWindow
* now
) ;
335 static wxWidgetImplType
* CreateButton( wxWindowMac
* wxpeer
,
338 const wxString
& label
,
344 static wxWidgetImplType
* CreateDisclosureTriangle( wxWindowMac
* wxpeer
,
347 const wxString
& label
,
353 static wxWidgetImplType
* CreateStaticLine( wxWindowMac
* wxpeer
,
361 static wxWidgetImplType
* CreateGroupBox( wxWindowMac
* wxpeer
,
364 const wxString
& label
,
370 static wxWidgetImplType
* CreateStaticText( wxWindowMac
* wxpeer
,
373 const wxString
& label
,
379 static wxWidgetImplType
* CreateTextControl( wxTextCtrl
* wxpeer
,
382 const wxString
& content
,
388 static wxWidgetImplType
* CreateSearchControl( wxSearchCtrl
* wxpeer
,
391 const wxString
& content
,
397 static wxWidgetImplType
* CreateCheckBox( wxWindowMac
* wxpeer
,
400 const wxString
& label
,
406 static wxWidgetImplType
* CreateRadioButton( wxWindowMac
* wxpeer
,
409 const wxString
& label
,
415 static wxWidgetImplType
* CreateToggleButton( wxWindowMac
* wxpeer
,
418 const wxString
& label
,
424 static wxWidgetImplType
* CreateBitmapToggleButton( wxWindowMac
* wxpeer
,
427 const wxBitmap
& bitmap
,
433 static wxWidgetImplType
* CreateBitmapButton( wxWindowMac
* wxpeer
,
436 const wxBitmap
& bitmap
,
442 static wxWidgetImplType
* CreateTabView( wxWindowMac
* wxpeer
,
450 static wxWidgetImplType
* CreateGauge( wxWindowMac
* wxpeer
,
461 static wxWidgetImplType
* CreateSlider( wxWindowMac
* wxpeer
,
472 static wxWidgetImplType
* CreateSpinButton( wxWindowMac
* wxpeer
,
483 static wxWidgetImplType
* CreateScrollBar( wxWindowMac
* wxpeer
,
491 static wxWidgetImplType
* CreateChoice( wxWindowMac
* wxpeer
,
500 static wxWidgetImplType
* CreateListBox( wxWindowMac
* wxpeer
,
509 static wxWidgetImplType
* CreateComboBox( wxComboBox
* wxpeer
,
519 // converts from Toplevel-Content relative to local
520 static void Convert( wxPoint
*pt
, wxWidgetImpl
*from
, wxWidgetImpl
*to
);
522 bool m_isRootControl
;
523 wxWindowMac
* m_wxPeer
;
524 bool m_needsFocusRect
;
526 bool m_shouldSendEvents
;
528 DECLARE_ABSTRACT_CLASS(wxWidgetImpl
)
532 // the interface to be implemented eg by a listbox
535 class WXDLLIMPEXP_CORE wxListWidgetColumn
538 virtual ~wxListWidgetColumn() {}
541 class WXDLLIMPEXP_CORE wxListWidgetCellValue
544 wxListWidgetCellValue() {}
545 virtual ~wxListWidgetCellValue() {}
547 virtual void Set( CFStringRef value
) = 0;
548 virtual void Set( const wxString
& value
) = 0;
549 virtual void Set( int value
) = 0;
550 virtual void Check( bool check
);
552 virtual bool IsChecked() const;
553 virtual int GetIntValue() const = 0;
554 virtual wxString
GetStringValue() const = 0;
557 class WXDLLIMPEXP_CORE wxListWidgetImpl
560 wxListWidgetImpl() {}
561 virtual ~wxListWidgetImpl() { }
563 virtual wxListWidgetColumn
* InsertTextColumn( unsigned pos
, const wxString
& title
, bool editable
= false,
564 wxAlignment just
= wxALIGN_LEFT
, int defaultWidth
= -1) = 0 ;
565 virtual wxListWidgetColumn
* InsertCheckColumn( unsigned pos
, const wxString
& title
, bool editable
= false,
566 wxAlignment just
= wxALIGN_LEFT
, int defaultWidth
= -1) = 0 ;
570 // TODO will be replaced
571 virtual void ListDelete( unsigned int n
) = 0;
572 virtual void ListInsert( unsigned int n
) = 0;
573 virtual void ListClear() = 0;
577 virtual void ListDeselectAll() = 0;
578 virtual void ListSetSelection( unsigned int n
, bool select
, bool multi
) = 0;
579 virtual int ListGetSelection() const = 0;
580 virtual int ListGetSelections( wxArrayInt
& aSelections
) const = 0;
581 virtual bool ListIsSelected( unsigned int n
) const = 0;
585 virtual void ListScrollTo( unsigned int n
) = 0;
586 virtual void UpdateLine( unsigned int n
, wxListWidgetColumn
* col
= NULL
) = 0;
587 virtual void UpdateLineToEnd( unsigned int n
) = 0;
591 virtual unsigned int ListGetCount() const = 0;
593 virtual int DoListHitTest( const wxPoint
& inpoint
) const = 0;
597 // interface to be implemented by a textcontrol
600 class WXDLLIMPEXP_FWD_CORE wxTextAttr
;
601 class WXDLLIMPEXP_FWD_CORE wxTextEntry
;
603 // common interface for all implementations
604 class WXDLLIMPEXP_CORE wxTextWidgetImpl
608 // Any widgets implementing this interface must be associated with a
609 // wxTextEntry so instead of requiring the derived classes to implement
610 // another (pure) virtual function, just take the pointer to this entry in
611 // our ctor and implement GetTextEntry() ourselves.
612 wxTextWidgetImpl(wxTextEntry
*entry
) : m_entry(entry
) {}
614 virtual ~wxTextWidgetImpl() {}
616 wxTextEntry
*GetTextEntry() const { return m_entry
; }
618 virtual bool CanFocus() const { return true; }
620 virtual wxString
GetStringValue() const = 0 ;
621 virtual void SetStringValue( const wxString
&val
) = 0 ;
622 virtual void SetSelection( long from
, long to
) = 0 ;
623 virtual void GetSelection( long* from
, long* to
) const = 0 ;
624 virtual void WriteText( const wxString
& str
) = 0 ;
626 virtual bool GetStyle( long position
, wxTextAttr
& style
);
627 virtual void SetStyle( long start
, long end
, const wxTextAttr
& style
) ;
628 virtual void Copy() ;
630 virtual void Paste() ;
631 virtual bool CanPaste() const ;
632 virtual void SetEditable( bool editable
) ;
633 virtual long GetLastPosition() const ;
634 virtual void Replace( long from
, long to
, const wxString
&str
) ;
635 virtual void Remove( long from
, long to
) ;
638 virtual bool HasOwnContextMenu() const
641 virtual bool SetupCursor( const wxPoint
& WXUNUSED(pt
) )
644 virtual void Clear() ;
645 virtual bool CanUndo() const;
646 virtual void Undo() ;
647 virtual bool CanRedo() const;
648 virtual void Redo() ;
649 virtual int GetNumberOfLines() const ;
650 virtual long XYToPosition(long x
, long y
) const;
651 virtual bool PositionToXY(long pos
, long *x
, long *y
) const ;
652 virtual void ShowPosition(long WXUNUSED(pos
)) ;
653 virtual int GetLineLength(long lineNo
) const ;
654 virtual wxString
GetLineText(long lineNo
) const ;
655 virtual void CheckSpelling(bool WXUNUSED(check
)) { }
657 virtual wxSize
GetBestSize() const { return wxDefaultSize
; }
659 virtual bool SetHint(const wxString
& WXUNUSED(hint
)) { return false; }
661 wxTextEntry
* const m_entry
;
663 wxDECLARE_NO_COPY_CLASS(wxTextWidgetImpl
);
666 // common interface for all implementations
667 class WXDLLIMPEXP_CORE wxComboWidgetImpl
671 wxComboWidgetImpl() {}
673 virtual ~wxComboWidgetImpl() {}
675 virtual int GetSelectedItem() const { return -1; };
676 virtual void SetSelectedItem(int WXUNUSED(item
)) {};
678 virtual int GetNumberOfItems() const { return -1; };
680 virtual void InsertItem(int WXUNUSED(pos
), const wxString
& WXUNUSED(item
)) {}
682 virtual void RemoveItem(int WXUNUSED(pos
)) {}
684 virtual void Clear() {}
686 virtual wxString
GetStringAtIndex(int WXUNUSED(pos
)) const { return wxEmptyString
; }
688 virtual int FindString(const wxString
& WXUNUSED(text
)) const { return -1; }
692 // common interface for buttons
699 virtual ~wxButtonImpl(){}
701 virtual void SetPressedBitmap( const wxBitmap
& bitmap
) = 0;
705 // common interface for search controls
708 class wxSearchWidgetImpl
711 wxSearchWidgetImpl(){}
712 virtual ~wxSearchWidgetImpl(){}
714 // search field options
715 virtual void ShowSearchButton( bool show
) = 0;
716 virtual bool IsSearchButtonVisible() const = 0;
718 virtual void ShowCancelButton( bool show
) = 0;
719 virtual bool IsCancelButtonVisible() const = 0;
721 virtual void SetSearchMenu( wxMenu
* menu
) = 0;
723 virtual void SetDescriptiveText(const wxString
& text
) = 0;
727 // toplevel window implementation class
730 class wxNonOwnedWindowImpl
: public wxObject
733 wxNonOwnedWindowImpl( wxNonOwnedWindow
* nonownedwnd
) : m_wxPeer(nonownedwnd
)
736 wxNonOwnedWindowImpl()
739 virtual ~wxNonOwnedWindowImpl()
743 virtual void WillBeDestroyed()
747 virtual void Create( wxWindow
* parent
, const wxPoint
& pos
, const wxSize
& size
,
748 long style
, long extraStyle
, const wxString
& name
) = 0;
751 virtual WXWindow
GetWXWindow() const = 0;
761 virtual bool Show(bool WXUNUSED(show
))
766 virtual bool ShowWithEffect(bool show
, wxShowEffect
WXUNUSED(effect
), unsigned WXUNUSED(timeout
))
771 virtual void Update()
775 virtual bool SetTransparent(wxByte
WXUNUSED(alpha
))
780 virtual bool SetBackgroundColour(const wxColour
& WXUNUSED(col
) )
785 virtual void SetExtraStyle( long WXUNUSED(exStyle
) )
789 virtual void SetWindowStyleFlag( long WXUNUSED(style
) )
793 virtual bool SetBackgroundStyle(wxBackgroundStyle
WXUNUSED(style
))
798 virtual bool CanSetTransparent()
803 virtual void GetContentArea( int &left
, int &top
, int &width
, int &height
) const = 0;
804 virtual void MoveWindow(int x
, int y
, int width
, int height
) = 0;
805 virtual void GetPosition( int &x
, int &y
) const = 0;
806 virtual void GetSize( int &width
, int &height
) const = 0;
808 virtual bool SetShape(const wxRegion
& WXUNUSED(region
))
813 virtual void SetTitle( const wxString
& title
, wxFontEncoding encoding
) = 0;
815 virtual bool IsMaximized() const = 0;
817 virtual bool IsIconized() const= 0;
819 virtual void Iconize( bool iconize
)= 0;
821 virtual void Maximize(bool maximize
) = 0;
823 virtual bool IsFullScreen() const= 0;
825 virtual void ShowWithoutActivating() { Show(true); }
827 virtual bool ShowFullScreen(bool show
, long style
)= 0;
829 virtual void RequestUserAttention(int flags
) = 0;
831 virtual void ScreenToWindow( int *x
, int *y
) = 0;
833 virtual void WindowToScreen( int *x
, int *y
) = 0;
835 virtual bool IsActive() = 0;
837 wxNonOwnedWindow
* GetWXPeer() { return m_wxPeer
; }
839 static wxNonOwnedWindowImpl
*
840 FindFromWXWindow(WXWindow window
);
842 static void RemoveAssociations( wxNonOwnedWindowImpl
* impl
);
844 static void Associate( WXWindow window
, wxNonOwnedWindowImpl
*impl
);
846 // static creation methods, must be implemented by all toolkits
848 static wxNonOwnedWindowImpl
* CreateNonOwnedWindow( wxNonOwnedWindow
* wxpeer
, wxWindow
* parent
, WXWindow native
) ;
850 static wxNonOwnedWindowImpl
* CreateNonOwnedWindow( wxNonOwnedWindow
* wxpeer
, wxWindow
* parent
, const wxPoint
& pos
, const wxSize
& size
,
851 long style
, long extraStyle
, const wxString
& name
) ;
853 virtual void SetModified(bool WXUNUSED(modified
)) { }
854 virtual bool IsModified() const { return false; }
857 virtual CGFloat
GetWindowLevel() const { return 0.0; }
859 virtual CGWindowLevel
GetWindowLevel() const { return kCGNormalWindowLevel
; }
861 virtual void RestoreWindowLevel() {}
863 wxNonOwnedWindow
* m_wxPeer
;
864 DECLARE_ABSTRACT_CLASS(wxNonOwnedWindowImpl
)
869 //---------------------------------------------------------------------------
870 // cocoa bridging utilities
871 //---------------------------------------------------------------------------
873 bool wxMacInitCocoa();
875 class WXDLLIMPEXP_CORE wxMacAutoreleasePool
878 wxMacAutoreleasePool();
879 ~wxMacAutoreleasePool();
886 void wxMacCocoaRelease( void* obj
);
887 void wxMacCocoaAutorelease( void* obj
);
888 void* wxMacCocoaRetain( void* obj
);
892 // _WX_PRIVATE_CORE_H_