我不确定我使用的是正确的术语,但我想扩展一个类的现有方法。我希望能够致电
[[CustomWindowViewController alloc] initWithWindowNibName:@"Something" withObject:object];
我想实现initWithWindowNibName的所有默认功能,但是也会传递该对象。
由于
切特
答案 0 :(得分:0)
想出来
- (id)initWithWindowNibName:(NSString *)windowNibName withObject:(NSObject*)object {
self = [super initWithWindowNibName:windowNibName];
// custom stuff
return self;
}