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. (One of my gripes with
protocols. They could fix this if they wanted to.) Looks like ³responds to
selector² is the only way.




 _______________________________________________
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