If so it's because although the compiler sees the call to "methodName" it does not know if that is valid for the object or not I would guess your code looks like (void) someFunc { ... self methodName:parameter; ... } -(void)methodName:(paraType)parameter { ... } You can either a) Place the 'methodName' function earlier in the file so the compiler has seen it before it's used in calls b) declare it in the class interface. E. G Foo.
H @interface Foo { ... } -(void) methodName:(paraType)parameter; @end.
If so it's because although the compiler sees the call to "methodName" it does not know if that is valid for the object or not. I would guess your code looks like; -(void) someFunc { ... self methodName:parameter; ... } -(void)methodName:(paraType)parameter { ... } You can either; a) Place the 'methodName' function earlier in the file so the compiler has seen it before it's used in calls. B) declare it in the class interface.
E.g. // Foo. H @interface Foo { ... } -(void) methodName:(paraType)parameter; @end.
The syntax you use is the propper way of calling method on self.
The problem may be basic, but this troubles me a lot. I really forget to define the method in head file. Thanks indeed.
– iPhoney Mar 3 '09 at 8:30.
The method will work because Objective-C methods are resolved at run-time. I expect the warning you get is something like "Object Foo may not respond to -methodName:" and then it tells you that it's defaulting the return type to id. That's because the compiler hasn't seen a declaration or definition of -methodName: by the time it compiles the code where you call it.To remove the warning, declare the method in either the class's interface or a category on the class.
If you are getting a warning it might be because the method signature isn't in an interface. @interface foo .... -(void)method; Once the implementation is written the warning should go away since it's not the first time the compiler has seen the method. It will work without doing this, but the warning message is annoying.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.