I've written one ages ago but I can't find it now.
How do you create a creator function for a class that uses the same syntax as [NSArray array];?
i.e.
+ (id)object;
Instead of...
- (id)initWithBlah...
Thanks
It's called a constructor and a typical implementation may be
+ (NSArray *)array
{
return [[[self alloc] init] autorelease];
}