Thursday, 15 March 2012

objective c - [MyObject myObjectWith: ...] -



objective c - [MyObject myObjectWith: ...] -

this question has reply here:

class methods create new instances 4 answers

does 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