Closed mxcl closed 13 years ago
Thanks again! I can't confirm your difference between dot- and parenthesis-notation or am I missing something? The following works perfectly without crashing:
NSString *string = nil; NSLog(@"Length: %d", string.length); NSLog(@"Length: %d", [string length]);
Afaik dot notation is just syntactic sugar and leads exactly to the same result as parenthesis notation.
You are right, i was mixing up ruby and obj-c in my head again.
NSString *string = nil;
NSLog(@"Length: %d", string.length); NSLog(@"Length: %d", [string length]);
Thanks again! I can't confirm your difference between dot- and parenthesis-notation or am I missing something? The following works perfectly without crashing:
Afaik dot notation is just syntactic sugar and leads exactly to the same result as parenthesis notation.