| 1 | ///////////////////////////////////////////////////////////////////////////// |
| 2 | // Name: cocoa/ObjcRef.mm |
| 3 | // Purpose: wxObjcAutoRefBase implementation |
| 4 | // Author: David Elliott |
| 5 | // Modified by: |
| 6 | // Created: 2004/03/28 |
| 7 | // RCS-ID: $Id$ |
| 8 | // Copyright: (c) 2004 David Elliott <dfe@cox.net> |
| 9 | // Licence: wxWidgets licence |
| 10 | ///////////////////////////////////////////////////////////////////////////// |
| 11 | |
| 12 | #include "wx/cocoa/ObjcRef.h" |
| 13 | |
| 14 | #include <Foundation/NSObject.h> |
| 15 | |
| 16 | /*static*/ struct objc_object* wxObjcAutoRefBase::ObjcRetain(struct objc_object* obj) |
| 17 | { |
| 18 | return [obj retain]; |
| 19 | } |
| 20 | |
| 21 | /*static*/ void wxObjcAutoRefBase::ObjcRelease(struct objc_object* obj) |
| 22 | { |
| 23 | [obj release]; |
| 24 | } |
| 25 | |