<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div><blockquote type="cite" class=""><div class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">I find this to be an ugly solution. Particularly so since non-objc protocols don't support optional members. Compare this to using a base class:</span><br class=""></div></blockquote></div><div class="">If inheritance works well, I wouldn't insist on protocols just for the sake of it.</div><div class="">This wont help with structs, but your example uses a class… and if you can't use inheritance for other reasons, you could try composition instead.</div></body></html>