Skip to content

Why does it expect newlines? #2

HaloZero opened this Issue Jul 2, 2013 · 2 comments

3 participants

HaloZero commented Jul 2, 2013

So I was looking at your example and I'm confused about something

So I copied in the text for test.m and kept fixing things until it ended up being this
@implementation SomeClass

  • (void)someMessage:(NSString *)subdomain { NSString *shouldStartLowerCase; }


But then you get the error

ERROR: 3:43 [69] - MissingNewline - Should have newline after ;
ERROR: 3:43 [69] - MissingSemicolon - Expected a semicolon

Does it think that the .m file is a .h file or am I missing some kinda style that I don't fully comprehend here?

Cue member

We use this style for message implementations:

- (void)someMessage:(NSString *)subdomain;
  // code

The Objective C compiler actually accepts this, and the advantage is that the signature can now be copy-pasted without modification between a .h and a .m file.

@robbywalker robbywalker closed this Jul 2, 2013

Is there anyways we can change present style to a different one ?
Other things are quite standard except this Method signature with semicolon at the end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.