From efafbf36521acb710e92258af13191893e1d75c8 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Sat, 16 Aug 2008 15:28:44 +0200 Subject: MLKArray: Add method +array. --- MLKArray.h | 1 + MLKArray.m | 8 ++++++++ 2 files changed, 9 insertions(+) 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; -- cgit v1.2.3