myell0w / MTStatusBarOverlay

A custom iOS status bar overlay seen in Apps like Reeder, Evernote and Google Mobile App
MIT License
1.92k stars 325 forks source link

Don't postMessage for zero length messages #19

Closed mxcl closed 13 years ago

myell0w commented 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.

coneybeare commented 13 years ago

You are right, i was mixing up ruby and obj-c in my head again.

Serwan90 commented 9 months ago
NSString *string = nil;

NSLog(@"Length: %d", string.length); NSLog(@"Length: %d", [string length]);