Objective-C method implementation nuances

Posted by altdotnetgeek on Stack Overflow See other posts from Stack Overflow or by altdotnetgeek
Published on 2010-05-24T01:23:55Z Indexed on 2010/05/24 1:31 UTC
Read the original article Hit count: 401

I have just started to develop for the iPhone and am in the process of learning Objective-C. I have seen some code that implements a method in the @implementation side of a class like this:

-(void)myMethod; { // method body }

What makes this interesting is that there is no mention of myMethod in the @interface for the class. I tried a sample project with this and when I compile I get a warning from XCode that myMethod may not be seen by the calling code.

Can anyone tell me what is going on?

Thanks!

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about xcode