Simple question. What is the meaning of the double asterisk in the interface below? It’s not an NSError pointer, but what?
- (BOOL)checkResourceIsReachableAndReturnError:(NSError **)error
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.
It’s a pointer to a pointer to an
NSError. It’s used as an “out parameter” — or you may want to think of it as a pointer to anNSErrorinstance, considering anNSObjectinstance is always a pointer.You use it like this:
On the implementation side, it looks like this: