I've change a c-style function to an objective-c method. As a method, how do i use it?
NSString* myfunc( int x )
is now:
- (NSString *)myFuncWithParam:(int)x
c code: myString = myfunc(x); // works
obj-c code: myString = myFuncWithParam(x); // fails to compile.
From one of the answers: myString = [object myFuncWithParam:x];
In that case, what would "object" be?