objective c - Does "alloc" methods produce an instance ? -


when write:

myclass *obj = [[myclass alloc]init]; 

i can split in 2 parts:

  • [myclass alloc] --->> produce something

  • [theproduct init];

so alloc class methods , being init instance method suppose must called on instance...in case result of [myclass alloc]. i'm confused that.

are conjectures correct?

+alloc allocates , zeroes memory instance of class. instance uninitialized—it's not ready used object until initialize -init or related.


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -