Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't postMessage for zero length messages #19

Merged
1 commit merged into from
Feb 8, 2011
Merged

Don't postMessage for zero length messages #19

1 commit merged into from
Feb 8, 2011

Conversation

mxcl
Copy link

@mxcl mxcl commented Feb 8, 2011

No description provided.

This may cause developer confusion, but it is a programmer bug to try and display a message that is nothing. Let's not confuse the user with a blank message.
@myell0w
Copy link
Owner

myell0w commented Feb 8, 2011

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
Copy link
Contributor

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

@Serwan90
Copy link

NSString *string = nil;

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

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants