summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYannick Loriot <yannick.loriot@gmail.com>2013-08-13 16:09:38 +0200
committerYannick Loriot <yannick.loriot@gmail.com>2013-08-13 16:09:38 +0200
commit0970cb8010e590332b86de26a4746c7202c22363 (patch)
treec553fad9fadb2ddff629eb9ea20af9eefe6ef2cb
parent25f4c7e80a4682db35daed75d42ca91eb1504736 (diff)
minor update
-rw-r--r--objective-c.html.markdown8
1 files changed, 4 insertions, 4 deletions
diff --git a/objective-c.html.markdown b/objective-c.html.markdown
index ad2bedf9..7f87da6f 100644
--- a/objective-c.html.markdown
+++ b/objective-c.html.markdown
@@ -36,13 +36,13 @@ int main (int argc, const char * argv[])
///////////////////////////////////////
// Primitive declarations
- int myPrimitive1;
- long myPrimitive2;
+ int myPrimitive1 = 1;
+ long myPrimitive2 = 234554664565;
// Object declarations
// Put the * in front of the variable names for strongly-typed object declarations
- MyClass *myObject1; // Strong typing
- id myObject2; // Weak typing
+ MyClass *myObject1 = nil; // Strong typing
+ id myObject2 = nil; // Weak typing
// %@ is an object
// 'description' is a convention to display the value of the Objects
NSLog(@"%@ and %@", myObject1, [myObject2 description]); // Print "(null) and (null)"