letting the peer declare whether it wants to draw its borders itself (eg the search...
[wxWidgets.git] / include / wx / osx / core / private.h
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
5 // with "wx".
6 // Author: Stefan Csomor
7 // Modified by:
8 // Created: 1998-01-01
9 // RCS-ID: $Id: private.h 53819 2008-05-29 14:11:45Z SC $
10 // Copyright: (c) Stefan Csomor
11 // Licence: wxWindows licence
12 /////////////////////////////////////////////////////////////////////////////
13
14 #ifndef _WX_PRIVATE_CORE_H_
15 #define _WX_PRIVATE_CORE_H_
16
17 #include "wx/defs.h"
18
19 #include <CoreFoundation/CoreFoundation.h>
20
21 #include "wx/osx/core/cfstring.h"
22 #include "wx/osx/core/cfdataref.h"
23
24 #if wxOSX_USE_COCOA_OR_CARBON
25
26 WXDLLIMPEXP_BASE long UMAGetSystemVersion() ;
27
28 void WXDLLIMPEXP_CORE wxMacStringToPascal( const wxString&from , unsigned char * to );
29 wxString WXDLLIMPEXP_CORE wxMacMakeStringFromPascal( const unsigned char * from );
30
31 #endif
32
33 #if wxUSE_GUI
34
35 #if wxOSX_USE_IPHONE
36 #include <CoreGraphics/CoreGraphics.h>
37 #else
38 #include <ApplicationServices/ApplicationServices.h>
39 #endif
40
41 #include "wx/bitmap.h"
42 #include "wx/window.h"
43
44 class WXDLLIMPEXP_CORE wxMacCGContextStateSaver
45 {
46 wxDECLARE_NO_COPY_CLASS(wxMacCGContextStateSaver);
47
48 public:
49 wxMacCGContextStateSaver( CGContextRef cg )
50 {
51 m_cg = cg;
52 CGContextSaveGState( cg );
53 }
54 ~wxMacCGContextStateSaver()
55 {
56 CGContextRestoreGState( m_cg );
57 }
58 private:
59 CGContextRef m_cg;
60 };
61
62 class WXDLLIMPEXP_CORE wxDeferredObjectDeleter : public wxObject
63 {
64 public :
65 wxDeferredObjectDeleter( wxObject* obj ) : m_obj(obj)
66 {
67 }
68 virtual ~wxDeferredObjectDeleter()
69 {
70 delete m_obj;
71 }
72 protected :
73 wxObject* m_obj ;
74 } ;
75
76 // Quartz
77
78 WXDLLIMPEXP_CORE CGImageRef wxMacCreateCGImageFromBitmap( const wxBitmap& bitmap );
79
80 WXDLLIMPEXP_CORE CGDataProviderRef wxMacCGDataProviderCreateWithCFData( CFDataRef data );
81 WXDLLIMPEXP_CORE CGDataConsumerRef wxMacCGDataConsumerCreateWithCFData( CFMutableDataRef data );
82 WXDLLIMPEXP_CORE CGDataProviderRef wxMacCGDataProviderCreateWithMemoryBuffer( const wxMemoryBuffer& buf );
83
84 CGColorSpaceRef WXDLLIMPEXP_CORE wxMacGetGenericRGBColorSpace(void);
85
86 class wxWindowMac;
87 // to
88 extern wxWindow* g_MacLastWindow;
89 class wxNonOwnedWindow;
90
91 // temporary typedef so that no additional casts are necessary within carbon code at the moment
92
93 class wxMacControl;
94 class wxWidgetImpl;
95 class wxNotebook;
96 class wxTextCtrl;
97
98 #if wxOSX_USE_CARBON
99 typedef wxMacControl wxWidgetImplType;
100 #else
101 typedef wxWidgetImpl wxWidgetImplType;
102 #endif
103
104 class wxMenuItemImpl : public wxObject
105 {
106 public :
107 wxMenuItemImpl( wxMenuItem* peer ) : m_peer(peer)
108 {
109 }
110
111 virtual ~wxMenuItemImpl() ;
112 virtual void SetBitmap( const wxBitmap& bitmap ) = 0;
113 virtual void Enable( bool enable ) = 0;
114 virtual void Check( bool check ) = 0;
115 virtual void SetLabel( const wxString& text, wxAcceleratorEntry *entry ) = 0;
116 virtual void Hide( bool hide = true ) = 0;
117
118 virtual void * GetHMenuItem() = 0;
119
120 wxMenuItem* GetWXPeer() { return m_peer ; }
121
122 static wxMenuItemImpl* Create( wxMenuItem* peer, wxMenu *pParentMenu,
123 int id,
124 const wxString& text,
125 wxAcceleratorEntry *entry,
126 const wxString& strHelp,
127 wxItemKind kind,
128 wxMenu *pSubMenu );
129
130 protected :
131 wxMenuItem* m_peer;
132
133 DECLARE_ABSTRACT_CLASS(wxMenuItemImpl)
134 } ;
135
136 class wxMenuImpl : public wxObject
137 {
138 public :
139 wxMenuImpl( wxMenu* peer ) : m_peer(peer)
140 {
141 }
142
143 virtual ~wxMenuImpl() ;
144 virtual void InsertOrAppend(wxMenuItem *pItem, size_t pos) = 0;
145 virtual void Remove( wxMenuItem *pItem ) = 0;
146
147 virtual void MakeRoot() = 0;
148
149 virtual void SetTitle( const wxString& text ) = 0;
150
151 virtual WXHMENU GetHMenu() = 0;
152
153 wxMenu* GetWXPeer() { return m_peer ; }
154
155 virtual void PopUp( wxWindow *win, int x, int y ) = 0;
156
157 static wxMenuImpl* Create( wxMenu* peer, const wxString& title );
158 static wxMenuImpl* CreateRootMenu( wxMenu* peer );
159 protected :
160 wxMenu* m_peer;
161
162 DECLARE_ABSTRACT_CLASS(wxMenuItemImpl)
163 } ;
164
165
166
167 class WXDLLIMPEXP_CORE wxWidgetImpl : public wxObject
168 {
169 public :
170 wxWidgetImpl( wxWindowMac* peer , bool isRootControl = false );
171 wxWidgetImpl();
172 virtual ~wxWidgetImpl();
173
174 void Init();
175
176 bool IsRootControl() const { return m_isRootControl; }
177
178 wxWindowMac* GetWXPeer() const { return m_wxPeer; }
179
180 bool IsOk() const { return GetWXWidget() != NULL; }
181
182 // not only the control itself, but also all its parents must be visible
183 // in order for this function to return true
184 virtual bool IsVisible() const = 0;
185 // set the visibility of this widget (maybe latent)
186 virtual void SetVisibility( bool visible ) = 0;
187
188 virtual void Raise() = 0;
189
190 virtual void Lower() = 0;
191
192 virtual void ScrollRect( const wxRect *rect, int dx, int dy ) = 0;
193
194 virtual WXWidget GetWXWidget() const = 0;
195
196 virtual void SetBackgroundColour( const wxColour& col ) = 0;
197
198 // all coordinates in native parent widget relative coordinates
199 virtual void GetContentArea( int &left , int &top , int &width , int &height ) const = 0;
200 virtual void Move(int x, int y, int width, int height) = 0;
201 virtual void GetPosition( int &x, int &y ) const = 0;
202 virtual void GetSize( int &width, int &height ) const = 0;
203 virtual void SetControlSize( wxWindowVariant variant ) = 0;
204
205 virtual void SetNeedsDisplay( const wxRect* where = NULL ) = 0;
206 virtual bool GetNeedsDisplay() const = 0;
207
208 virtual bool NeedsFocusRect() const;
209 virtual void SetNeedsFocusRect( bool needs );
210
211 virtual bool NeedsFrame() const;
212 virtual void SetNeedsFrame( bool needs );
213
214 virtual bool CanFocus() const = 0;
215 // return true if successful
216 virtual bool SetFocus() = 0;
217 virtual bool HasFocus() const = 0;
218
219 virtual void RemoveFromParent() = 0;
220 virtual void Embed( wxWidgetImpl *parent ) = 0;
221
222 virtual void SetDefaultButton( bool isDefault ) = 0;
223 virtual void PerformClick() = 0;
224 virtual void SetLabel( const wxString& title, wxFontEncoding encoding ) = 0;
225
226 virtual void SetCursor( const wxCursor & cursor ) = 0;
227 virtual void CaptureMouse() = 0;
228 virtual void ReleaseMouse() = 0;
229
230 virtual wxInt32 GetValue() const = 0;
231 virtual void SetValue( wxInt32 v ) = 0;
232 virtual void SetBitmap( const wxBitmap& bitmap ) = 0;
233 virtual void SetupTabs( const wxNotebook &notebook ) =0;
234 virtual void GetBestRect( wxRect *r ) const = 0;
235 virtual bool IsEnabled() const = 0;
236 virtual void Enable( bool enable ) = 0;
237 virtual void SetMinimum( wxInt32 v ) = 0;
238 virtual void SetMaximum( wxInt32 v ) = 0;
239 virtual wxInt32 GetMinimum() const = 0;
240 virtual wxInt32 GetMaximum() const = 0;
241 virtual void PulseGauge() = 0;
242 virtual void SetScrollThumb( wxInt32 value, wxInt32 thumbSize ) = 0;
243
244 virtual void SetFont( const wxFont & font , const wxColour& foreground , long windowStyle, bool ignoreBlack = true ) = 0;
245
246 // is the clicked event sent AFTER the state already changed, so no additional
247 // state changing logic is required from the outside
248 virtual bool ButtonClickDidStateChange() = 0;
249
250 virtual void InstallEventHandler( WXWidget control = NULL ) = 0;
251
252 // static methods for associating native controls and their implementations
253
254 static wxWidgetImpl*
255 FindFromWXWidget(WXWidget control);
256
257 static void RemoveAssociations( wxWidgetImpl* impl);
258
259 static void Associate( WXWidget control, wxWidgetImpl *impl );
260
261 // static creation methods, must be implemented by all toolkits
262
263 static wxWidgetImplType* CreateUserPane( wxWindowMac* wxpeer,
264 wxWindowMac* parent,
265 wxWindowID id,
266 const wxPoint& pos,
267 const wxSize& size,
268 long style,
269 long extraStyle) ;
270 static wxWidgetImplType* CreateContentView( wxNonOwnedWindow* now ) ;
271
272 static wxWidgetImplType* CreateButton( wxWindowMac* wxpeer,
273 wxWindowMac* parent,
274 wxWindowID id,
275 const wxString& label,
276 const wxPoint& pos,
277 const wxSize& size,
278 long style,
279 long extraStyle) ;
280
281 static wxWidgetImplType* CreateDisclosureTriangle( wxWindowMac* wxpeer,
282 wxWindowMac* parent,
283 wxWindowID id,
284 const wxString& label,
285 const wxPoint& pos,
286 const wxSize& size,
287 long style,
288 long extraStyle) ;
289
290 static wxWidgetImplType* CreateStaticLine( wxWindowMac* wxpeer,
291 wxWindowMac* parent,
292 wxWindowID id,
293 const wxPoint& pos,
294 const wxSize& size,
295 long style,
296 long extraStyle) ;
297
298 static wxWidgetImplType* CreateGroupBox( wxWindowMac* wxpeer,
299 wxWindowMac* parent,
300 wxWindowID id,
301 const wxString& label,
302 const wxPoint& pos,
303 const wxSize& size,
304 long style,
305 long extraStyle) ;
306
307 static wxWidgetImplType* CreateStaticText( wxWindowMac* wxpeer,
308 wxWindowMac* parent,
309 wxWindowID id,
310 const wxString& label,
311 const wxPoint& pos,
312 const wxSize& size,
313 long style,
314 long extraStyle) ;
315
316 static wxWidgetImplType* CreateTextControl( wxTextCtrl* wxpeer,
317 wxWindowMac* parent,
318 wxWindowID id,
319 const wxString& content,
320 const wxPoint& pos,
321 const wxSize& size,
322 long style,
323 long extraStyle) ;
324
325 static wxWidgetImplType* CreateSearchControl( wxTextCtrl* wxpeer,
326 wxWindowMac* parent,
327 wxWindowID id,
328 const wxString& content,
329 const wxPoint& pos,
330 const wxSize& size,
331 long style,
332 long extraStyle) ;
333
334 static wxWidgetImplType* CreateCheckBox( wxWindowMac* wxpeer,
335 wxWindowMac* parent,
336 wxWindowID id,
337 const wxString& label,
338 const wxPoint& pos,
339 const wxSize& size,
340 long style,
341 long extraStyle);
342
343 static wxWidgetImplType* CreateRadioButton( wxWindowMac* wxpeer,
344 wxWindowMac* parent,
345 wxWindowID id,
346 const wxString& label,
347 const wxPoint& pos,
348 const wxSize& size,
349 long style,
350 long extraStyle);
351
352 static wxWidgetImplType* CreateToggleButton( wxWindowMac* wxpeer,
353 wxWindowMac* parent,
354 wxWindowID id,
355 const wxString& label,
356 const wxPoint& pos,
357 const wxSize& size,
358 long style,
359 long extraStyle);
360
361 static wxWidgetImplType* CreateBitmapToggleButton( wxWindowMac* wxpeer,
362 wxWindowMac* parent,
363 wxWindowID id,
364 const wxBitmap& bitmap,
365 const wxPoint& pos,
366 const wxSize& size,
367 long style,
368 long extraStyle);
369
370 static wxWidgetImplType* CreateBitmapButton( wxWindowMac* wxpeer,
371 wxWindowMac* parent,
372 wxWindowID id,
373 const wxBitmap& bitmap,
374 const wxPoint& pos,
375 const wxSize& size,
376 long style,
377 long extraStyle);
378
379 static wxWidgetImplType* CreateTabView( wxWindowMac* wxpeer,
380 wxWindowMac* parent,
381 wxWindowID id,
382 const wxPoint& pos,
383 const wxSize& size,
384 long style,
385 long extraStyle);
386
387 static wxWidgetImplType* CreateGauge( wxWindowMac* wxpeer,
388 wxWindowMac* parent,
389 wxWindowID id,
390 wxInt32 value,
391 wxInt32 minimum,
392 wxInt32 maximum,
393 const wxPoint& pos,
394 const wxSize& size,
395 long style,
396 long extraStyle);
397
398 static wxWidgetImplType* CreateSlider( wxWindowMac* wxpeer,
399 wxWindowMac* parent,
400 wxWindowID id,
401 wxInt32 value,
402 wxInt32 minimum,
403 wxInt32 maximum,
404 const wxPoint& pos,
405 const wxSize& size,
406 long style,
407 long extraStyle);
408
409 static wxWidgetImplType* CreateSpinButton( wxWindowMac* wxpeer,
410 wxWindowMac* parent,
411 wxWindowID id,
412 wxInt32 value,
413 wxInt32 minimum,
414 wxInt32 maximum,
415 const wxPoint& pos,
416 const wxSize& size,
417 long style,
418 long extraStyle);
419
420 static wxWidgetImplType* CreateScrollBar( wxWindowMac* wxpeer,
421 wxWindowMac* parent,
422 wxWindowID id,
423 const wxPoint& pos,
424 const wxSize& size,
425 long style,
426 long extraStyle);
427
428 static wxWidgetImplType* CreateChoice( wxWindowMac* wxpeer,
429 wxWindowMac* parent,
430 wxWindowID id,
431 wxMenu* menu,
432 const wxPoint& pos,
433 const wxSize& size,
434 long style,
435 long extraStyle);
436
437 static wxWidgetImplType* CreateListBox( wxWindowMac* wxpeer,
438 wxWindowMac* parent,
439 wxWindowID id,
440 const wxPoint& pos,
441 const wxSize& size,
442 long style,
443 long extraStyle);
444
445 // converts from Toplevel-Content relative to local
446 static void Convert( wxPoint *pt , wxWidgetImpl *from , wxWidgetImpl *to );
447 protected :
448 bool m_isRootControl;
449 wxWindowMac* m_wxPeer;
450 bool m_needsFocusRect;
451 bool m_needsFrame;
452
453 DECLARE_ABSTRACT_CLASS(wxWidgetImpl)
454 };
455
456 //
457 // the interface to be implemented eg by a listbox
458 //
459
460 class WXDLLIMPEXP_CORE wxListWidgetColumn
461 {
462 public :
463 virtual ~wxListWidgetColumn() {}
464 } ;
465
466 class WXDLLIMPEXP_CORE wxListWidgetCellValue
467 {
468 public :
469 wxListWidgetCellValue() {}
470 virtual ~wxListWidgetCellValue() {}
471
472 virtual void Set( CFStringRef value ) = 0;
473 virtual void Set( const wxString& value ) = 0;
474 virtual void Set( int value ) = 0;
475
476 virtual int GetIntValue() const = 0;
477 virtual wxString GetStringValue() const = 0;
478 } ;
479
480 class WXDLLIMPEXP_CORE wxListWidgetImpl
481 {
482 public:
483 wxListWidgetImpl() {}
484 virtual ~wxListWidgetImpl() { }
485
486 virtual wxListWidgetColumn* InsertTextColumn( unsigned pos, const wxString& title, bool editable = false,
487 wxAlignment just = wxALIGN_LEFT , int defaultWidth = -1) = 0 ;
488 virtual wxListWidgetColumn* InsertCheckColumn( unsigned pos , const wxString& title, bool editable = false,
489 wxAlignment just = wxALIGN_LEFT , int defaultWidth = -1) = 0 ;
490
491 // add and remove
492
493 // TODO will be replaced
494 virtual void ListDelete( unsigned int n ) = 0;
495 virtual void ListInsert( unsigned int n ) = 0;
496 virtual void ListClear() = 0;
497
498 // selecting
499
500 virtual void ListDeselectAll() = 0;
501 virtual void ListSetSelection( unsigned int n, bool select, bool multi ) = 0;
502 virtual int ListGetSelection() const = 0;
503 virtual int ListGetSelections( wxArrayInt& aSelections ) const = 0;
504 virtual bool ListIsSelected( unsigned int n ) const = 0;
505
506 // display
507
508 virtual void ListScrollTo( unsigned int n ) = 0;
509 virtual void UpdateLine( unsigned int n, wxListWidgetColumn* col = NULL ) = 0;
510 virtual void UpdateLineToEnd( unsigned int n) = 0;
511
512 // accessing content
513
514 virtual unsigned int ListGetCount() const = 0;
515 };
516
517 //
518 // interface to be implemented by a textcontrol
519 //
520
521 class WXDLLIMPEXP_FWD_CORE wxTextAttr;
522
523 // common interface for all implementations
524 class WXDLLIMPEXP_CORE wxTextWidgetImpl
525
526 {
527 public :
528 wxTextWidgetImpl() {}
529
530 virtual ~wxTextWidgetImpl() {}
531
532 virtual bool CanFocus() const { return true; }
533
534 virtual wxString GetStringValue() const = 0 ;
535 virtual void SetStringValue( const wxString &val ) = 0 ;
536 virtual void SetSelection( long from, long to ) = 0 ;
537 virtual void GetSelection( long* from, long* to ) const = 0 ;
538 virtual void WriteText( const wxString& str ) = 0 ;
539
540 virtual void SetStyle( long start, long end, const wxTextAttr& style ) ;
541 virtual void Copy() ;
542 virtual void Cut() ;
543 virtual void Paste() ;
544 virtual bool CanPaste() const ;
545 virtual void SetEditable( bool editable ) ;
546 virtual long GetLastPosition() const ;
547 virtual void Replace( long from, long to, const wxString &str ) ;
548 virtual void Remove( long from, long to ) ;
549
550
551 virtual bool HasOwnContextMenu() const
552 { return false ; }
553
554 virtual bool SetupCursor( const wxPoint& WXUNUSED(pt) )
555 { return false ; }
556
557 virtual void Clear() ;
558 virtual bool CanUndo() const;
559 virtual void Undo() ;
560 virtual bool CanRedo() const;
561 virtual void Redo() ;
562 virtual int GetNumberOfLines() const ;
563 virtual long XYToPosition(long x, long y) const;
564 virtual bool PositionToXY(long pos, long *x, long *y) const ;
565 virtual void ShowPosition(long WXUNUSED(pos)) ;
566 virtual int GetLineLength(long lineNo) const ;
567 virtual wxString GetLineText(long lineNo) const ;
568 virtual void CheckSpelling(bool WXUNUSED(check)) { }
569 };
570
571 //
572 // common interface for search controls
573 //
574
575 class wxSearchWidgetImpl
576 {
577 public :
578 wxSearchWidgetImpl(){}
579 virtual ~wxSearchWidgetImpl(){}
580
581 // search field options
582 virtual void ShowSearchButton( bool show ) = 0;
583 virtual bool IsSearchButtonVisible() const = 0;
584
585 virtual void ShowCancelButton( bool show ) = 0;
586 virtual bool IsCancelButtonVisible() const = 0;
587
588 virtual void SetSearchMenu( wxMenu* menu ) = 0;
589
590 virtual void SetDescriptiveText(const wxString& text) = 0;
591 } ;
592
593 //
594 // toplevel window implementation class
595 //
596
597 class wxNonOwnedWindowImpl : public wxObject
598 {
599 public :
600 wxNonOwnedWindowImpl( wxNonOwnedWindow* nonownedwnd) : m_wxPeer(nonownedwnd)
601 {
602 }
603 wxNonOwnedWindowImpl()
604 {
605 }
606 virtual ~wxNonOwnedWindowImpl()
607 {
608 }
609
610 virtual void Destroy()
611 {
612 }
613
614 virtual void Create( wxWindow* parent, const wxPoint& pos, const wxSize& size,
615 long style, long extraStyle, const wxString& name ) = 0;
616
617
618 virtual WXWindow GetWXWindow() const = 0;
619
620 virtual void Raise()
621 {
622 }
623
624 virtual void Lower()
625 {
626 }
627
628 virtual bool Show(bool WXUNUSED(show))
629 {
630 return false;
631 }
632
633 virtual bool ShowWithEffect(bool show, wxShowEffect WXUNUSED(effect), unsigned WXUNUSED(timeout))
634 {
635 return Show(show);
636 }
637
638 virtual void Update()
639 {
640 }
641
642 virtual bool SetTransparent(wxByte WXUNUSED(alpha))
643 {
644 return false;
645 }
646
647 virtual bool SetBackgroundColour(const wxColour& WXUNUSED(col) )
648 {
649 return false;
650 }
651
652 virtual void SetExtraStyle( long WXUNUSED(exStyle) )
653 {
654 }
655
656 virtual bool SetBackgroundStyle(wxBackgroundStyle WXUNUSED(style))
657 {
658 return false ;
659 }
660
661 bool CanSetTransparent()
662 {
663 return false;
664 }
665
666 virtual void GetContentArea( int &left , int &top , int &width , int &height ) const = 0;
667 virtual void MoveWindow(int x, int y, int width, int height) = 0;
668 virtual void GetPosition( int &x, int &y ) const = 0;
669 virtual void GetSize( int &width, int &height ) const = 0;
670
671 virtual bool SetShape(const wxRegion& WXUNUSED(region))
672 {
673 return false;
674 }
675
676 virtual void SetTitle( const wxString& title, wxFontEncoding encoding ) = 0;
677
678 virtual bool IsMaximized() const = 0;
679
680 virtual bool IsIconized() const= 0;
681
682 virtual void Iconize( bool iconize )= 0;
683
684 virtual void Maximize(bool maximize) = 0;
685
686 virtual bool IsFullScreen() const= 0;
687
688 virtual bool ShowFullScreen(bool show, long style)= 0;
689
690 virtual void RequestUserAttention(int flags) = 0;
691
692 virtual void ScreenToWindow( int *x, int *y ) = 0;
693
694 virtual void WindowToScreen( int *x, int *y ) = 0;
695
696 wxNonOwnedWindow* GetWXPeer() { return m_wxPeer; }
697
698 // static creation methods, must be implemented by all toolkits
699
700 static wxNonOwnedWindowImpl* CreateNonOwnedWindow( wxNonOwnedWindow* wxpeer, wxWindow* parent, const wxPoint& pos, const wxSize& size,
701 long style, long extraStyle, const wxString& name ) ;
702
703 protected :
704 wxNonOwnedWindow* m_wxPeer;
705 DECLARE_ABSTRACT_CLASS(wxNonOwnedWindowImpl)
706 };
707
708 #endif // wxUSE_GUI
709
710 //---------------------------------------------------------------------------
711 // cocoa bridging utilities
712 //---------------------------------------------------------------------------
713
714 bool wxMacInitCocoa();
715
716 class WXDLLIMPEXP_CORE wxMacAutoreleasePool
717 {
718 public :
719 wxMacAutoreleasePool();
720 ~wxMacAutoreleasePool();
721 private :
722 void* m_pool;
723 };
724
725 // NSObject
726
727 void wxMacCocoaRelease( void* obj );
728 void wxMacCocoaAutorelease( void* obj );
729 void wxMacCocoaRetain( void* obj );
730
731
732 #endif
733 // _WX_PRIVATE_CORE_H_