> On Feb 19, 2015, at 9:37 AM, Gordon Apple <[email protected]> wrote:
> 
> You can define optional methods in a protocol. You can also define 
> properties. However, the latter will not get synthesized in the adopter. You 
> have to add the accessors and ivars yourself.

Or use @synthesize, as I did in my example.

> Looks like “responds to selector” is the only way.

But I don’t want to know whether a specific class implements the property, I 
want to know if the property itself is declared as @optional in the protocol.

—Jens
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Objc-language mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/objc-language/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to