diff options
author | Yannick Loriot <yannick.loriot@gmail.com> | 2013-08-13 16:07:58 +0200 |
---|---|---|
committer | Yannick Loriot <yannick.loriot@gmail.com> | 2013-08-13 16:07:58 +0200 |
commit | 25f4c7e80a4682db35daed75d42ca91eb1504736 (patch) | |
tree | 3b3df7952654c912990c530ccbef56922c11a058 /objective-c.html.markdown | |
parent | 0040ce616b4e27a182834cd2fd03aacc2561a198 (diff) |
minor fixes
Diffstat (limited to 'objective-c.html.markdown')
-rw-r--r-- | objective-c.html.markdown | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/objective-c.html.markdown b/objective-c.html.markdown index c3df514b..ad2bedf9 100644 --- a/objective-c.html.markdown +++ b/objective-c.html.markdown @@ -36,14 +36,16 @@ int main (int argc, const char * argv[]) /////////////////////////////////////// // Primitive declarations - int myPrimitive; + int myPrimitive1; + long myPrimitive2; // Object declarations // Put the * in front of the variable names for strongly-typed object declarations MyClass *myObject1; // Strong typing id myObject2; // Weak typing // %@ is an object - NSLog(@"%@ and %@", myObject1, myObject2); // Print "(null) and (null)" + // 'description' is a convention to display the value of the Objects + NSLog(@"%@ and %@", myObject1, [myObject2 description]); // Print "(null) and (null)" // String NSString *worldString = @"World"; |