Given this:
-(Authenticate_Obj)Authenticate_User:(NSString*)Number:(NSString*)name:(NSString*)password
Your method's selector is:
Authenticate_User:::
Which is the string you would pass to @selector()
.
Your AuthenticateMobileServer:action:
method must takes a selector that, when called, takes that set of arguments, obviously.
There are, however, several problems with this code (the first clue being the two wrong answers from otherwise very knowledgeable folk).
Method names do not start with capital letters, nor do they have _
s in them. Method names are camel-cased. So, something like authenticateUserNumber:name:password:
would be a more appropriate method name.
Every argument should have a part of the method name that describes it. Again, authenticateUserNumber:name:password:
would be in line with standard practice.
Class names don't have _
in them. I'm assuming Authenticate_Obj is a class. If so, it also needs to be returned as a pointer.
Namely, that method should probably be something like:
- (AuthenticateObject *) authenticateUserNumber: (NSString*) aNum
name: (NSString *) aName
password: (NSString *) aPassword;