コンビニエンスコンストラクタ
よくあるobjectWithxxのようなやつ。
クラスメソッドで定義して
+(id)objectWithxx:(int)num{ return [[[Object alloc] initWithxx] autorelease]; } -(id)initWithxx:(int)num{ [super init]; self.num = num; return self; }
Object *object = [Object objectWithxx:10];
として使用できる。