[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
retain, release, and autorelease operations
From: |
Ludovic Marcotte |
Subject: |
retain, release, and autorelease operations |
Date: |
Tue, 2 Oct 2001 12:36:44 -0400 (EDT) |
Hi,
One of my friend is porting GNUMail.app / Pantomime to MacOS-X.
Since GNUstep defines RETAIN(), RELEASE(), and AUTORELEASE() as
placeholders for GC (in a distant future), is it safe to simply define
in both projects:
#ifndef GNUSTEP_BASE_VERSION
#define RETAIN(object) [object retain]
#define RELEASE(object) [object release]
#define AUTORELEASE(object) [object autorelease]
#endif
(and maybe ASSIGN, TEST_*, ...)
?
Thanks,
Ludovic
--
Live as if you were to die tomorrow.
Learn as if you were to live forever.
- Gandhi
- retain, release, and autorelease operations,
Ludovic Marcotte <=