In xcode when using the following:
friend:(NSString*)friend
friend is has the color red, like (id) is red – is friend a reserved word or something?
It work allright, it is just the editor that displays it as red?
Regards
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
XCode is also an editor for C and C++; in C++ friend is a valid keyword.
Its worth mentioning that you can have C++ classes within an Objective-C project.