]> git.saurik.com Git - wxWidgets.git/blob - src/cocoa/ObjcRef.mm
Return NULL from wxWindow::GetCapture() when the capture is being lost.
[wxWidgets.git] / src / cocoa / ObjcRef.mm
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/cocoa/ObjcRef.mm
3 // Purpose: wxObjcAutoRefBase implementation
4 // Author: David Elliott
5 // Modified by:
6 // Created: 2004/03/28
7 // Copyright: (c) 2004 David Elliott <dfe@cox.net>
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 #include "wx/cocoa/ObjcRef.h"
12
13 #include <Foundation/NSObject.h>
14
15 /*static*/ struct objc_object* wxObjcAutoRefBase::ObjcRetain(struct objc_object* obj)
16 {
17 return [obj retain];
18 }
19
20 /*static*/ void wxObjcAutoRefBase::ObjcRelease(struct objc_object* obj)
21 {
22 [obj release];
23 }
24