summaryrefslogtreecommitdiff
path: root/MLKBinding.m
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <matthias@benkard.de>2008-08-04 16:20:18 +0200
committerMatthias Andreas Benkard <matthias@benkard.de>2008-08-04 16:20:18 +0200
commita4c9f5bd436dae1d99845f50da55bae733129f56 (patch)
tree22a1718222ab8d76f928cfaa4740442a4d43c1fd /MLKBinding.m
parenta0b4d1eafa4312b5970f7268441d848be5231e7b (diff)
Add fixnum-aware macros LRETAIN, LRELEASE, LDESTROY, LAUTORELEASE, LASSIGN_COPY, and LASSIGN.
Diffstat (limited to 'MLKBinding.m')
-rw-r--r--MLKBinding.m13
1 files changed, 7 insertions, 6 deletions
diff --git a/MLKBinding.m b/MLKBinding.m
index e6aadd8..2b44ba9 100644
--- a/MLKBinding.m
+++ b/MLKBinding.m
@@ -18,6 +18,7 @@
#import "MLKBinding.h"
#import "runtime-compatibility.h"
+#import "util.h"
#import <Foundation/NSException.h>
#import <Foundation/NSString.h>
@@ -40,23 +41,23 @@ static id UNBOUND;
-(MLKBinding *) initWithValue:(id)something
{
self = [super init];
- ASSIGN (value, something);
+ LASSIGN (value, something);
return self;
}
+(MLKBinding *) binding
{
- return AUTORELEASE ([[self alloc] init]);
+ return LAUTORELEASE ([[self alloc] init]);
}
+(MLKBinding *) bindingWithValue:(id)something
{
- return AUTORELEASE ([[self alloc] initWithValue:something]);
+ return LAUTORELEASE ([[self alloc] initWithValue:something]);
}
-(void) setValue:(id)something
{
- ASSIGN (value, something);
+ LASSIGN (value, something);
}
-(id) value
@@ -75,12 +76,12 @@ static id UNBOUND;
-(void) makunbound
{
- ASSIGN (value, UNBOUND);
+ LASSIGN (value, UNBOUND);
}
-(void) dealloc
{
- RELEASE (value);
+ LRELEASE (value);
[super dealloc];
}
@end