I found that I could do such things in objc:
Protocol* aProtocol = @protocol(NSObject);
but what is this technique used for?
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.
You could have, for example, a container that offers a service to check that all of its contents conform to a protocol.
Then the user of the container could call:
And somewhere in the container the check could be made: