summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <matthias@benkard.de>2008-08-16 15:28:44 +0200
committerMatthias Andreas Benkard <matthias@benkard.de>2008-08-16 15:42:14 +0200
commitefafbf36521acb710e92258af13191893e1d75c8 (patch)
tree84d90d093e380e74efb04287bcfeda05c798f7ed
parentbe719f278f6b7c58cb2f0dfbd6edce19a3df85cc (diff)
MLKArray: Add method +array.
-rw-r--r--MLKArray.h1
-rw-r--r--MLKArray.m8
2 files changed, 9 insertions, 0 deletions
diff --git a/MLKArray.h b/MLKArray.h
index 5fedf1c..1205b69 100644
--- a/MLKArray.h
+++ b/MLKArray.h
@@ -31,6 +31,7 @@
NSArray *_displacement;
}
++(id) array;
-(id) initWithDimensions:(NSArray *)dimensions;
-(NSArray *) dimensions;
diff --git a/MLKArray.m b/MLKArray.m
index 5890953..11c7889 100644
--- a/MLKArray.m
+++ b/MLKArray.m
@@ -30,6 +30,14 @@
@implementation MLKArray
++(id) array
+{
+ return LAUTORELEASE ([[self alloc]
+ initWithDimensions:
+ [NSArray arrayWithObject:
+ [MLKInteger integerWithInt:0]]]);
+}
+
-(id) initWithDimensions:(NSArray *)dimensions
{
NSEnumerator *e;