objective c - [MyObject myObjectWith: ...] -
this question has reply here:
class methods create new instances 4 answersdoes knows how create kind of "class auto instantiator":
mydict = [nsdictionnary dictionnarywithcapacity: 0];
i can't find resource on (maybe don't know terminology)
not sure mean... mean class method create object?
@implementation myclass +(myclass *)myclasswithparameter:(int)whatever { myclass instance = [[myclass alloc] init]; [instance dowhatever:whatever]; homecoming instance; }
objective-c constructor initialization
No comments:
Post a Comment