Guest User

Untitled

a guest
Mar 17th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. Notes on objective-c 2.0
  2.  
  3. - NSLog - useful log to stdout, part of Foundation classes
  4. - Don't forget to prefix your NSString literals with @. Otherwise you'll get a seg fault
  5. - Use alloc and init in two separate actions instead of new so you are aware two separate actions are ocurring. [[Klass alloc] init]
  6. - name instance variables and getters the same.
  7. - prefix setters with set
  8. - camelCase seems to be the default
  9.  
  10. data types
  11.  
  12. - %x - hex
  13. - %o - octal
  14. - %g floats in scientiffic notation 1.7e4 == 1.7E4
  15.  
  16. - %p id data type - store an object of any type
Add Comment
Please, Sign In to add comment