Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. - (instancetype)init
  2. {
  3. self = [super init]; // Is potentially nil
  4.  
  5. if (self)
  6. {
  7. // Initialization code here…
  8. }
  9.  
  10. return self;
  11. }
  12.  
  13. self.myVar = ...; // fine
  14. _myVar = ...; // fine
  15.  
  16. self = nil;
  17.  
  18. self.myVar = ...; // fine
  19. _myVar = ...; // wrong
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement