in some code I saw something like this:
@implementation SomeClass (SomeDelegate)
What does the SomeDelegatedo in that context?
Cheers
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.
This is a category. Given that it’s call “SomeDelegate”, I suspect that someone was just breaking up the code in their implementation file to group all the delegate methods together. Some people use multiple
@implementationblocks to do that. This is the original use of categories. More often today, categories are used to extend existing classes. See the above link for more information.