Declaring, implementing and using method like this:
Test.h:
- method:parameter;
Test.m:
- method:parameter{
return nil;
}
Using:
[test method:anObject];
There is no return-type and parameter-type, but it works without any warning or error.
Can somebody explain it?
As the Objective-C Programming Language document states:
So:
effectively means:
and, correspondingly:
effectively means: