Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Notes on objective-c 2.0
- - NSLog - useful log to stdout, part of Foundation classes
- - Don't forget to prefix your NSString literals with @. Otherwise you'll get a seg fault
- - Use alloc and init in two separate actions instead of new so you are aware two separate actions are ocurring. [[Klass alloc] init]
- - name instance variables and getters the same.
- - prefix setters with set
- - camelCase seems to be the default
- data types
- - %x - hex
- - %o - octal
- - %g floats in scientiffic notation 1.7e4 == 1.7E4
- - %p id data type - store an object of any type
Add Comment
Please, Sign In to add comment