diff options
author | Matthias Andreas Benkard <matthias@benkard.de> | 2008-08-16 15:28:44 +0200 |
---|---|---|
committer | Matthias Andreas Benkard <matthias@benkard.de> | 2008-08-16 15:42:14 +0200 |
commit | efafbf36521acb710e92258af13191893e1d75c8 (patch) | |
tree | 84d90d093e380e74efb04287bcfeda05c798f7ed | |
parent | be719f278f6b7c58cb2f0dfbd6edce19a3df85cc (diff) |
MLKArray: Add method +array.
-rw-r--r-- | MLKArray.h | 1 | ||||
-rw-r--r-- | MLKArray.m | 8 |
2 files changed, 9 insertions, 0 deletions
@@ -31,6 +31,7 @@ NSArray *_displacement; } ++(id) array; -(id) initWithDimensions:(NSArray *)dimensions; -(NSArray *) dimensions; @@ -30,6 +30,14 @@ @implementation MLKArray ++(id) array +{ + return LAUTORELEASE ([[self alloc] + initWithDimensions: + [NSArray arrayWithObject: + [MLKInteger integerWithInt:0]]]); +} + -(id) initWithDimensions:(NSArray *)dimensions { NSEnumerator *e; |