<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">There is no API for accessing optional/required properties. The only thing it offers is <span style="font-family: Menlo; font-size: 15px; "> </span><font face="Menlo" color="#004d65" style="font-size: 13px;">CXCursor_ObjCPropertyDecl</font><font face="Menlo" color="#004d65" style="font-size: 15px;">. </font><font style="font-size: 13px;">But in Protocol we can have both optional/required properties. So there is still lack of API.</font><div><br></div><div><font face="Menlo"><span style="font-size: 15px;">@protocol protocol1 <NSObject></span></font></div><div><font face="Menlo"><span style="font-size: 15px;">@optional</span></font></div><div><font face="Menlo"><span style="font-size: 15px;">@property (readonly) NSString *string1;</span></font></div><div><span style="font-size: 15px; font-family: Menlo; "><br></span></div><div><span style="font-size: 15px; font-family: Menlo; ">@required</span></div><div><span style="font-size: 15px; font-family: Menlo; ">@property (readonly) NSString *string2;</span></div><div><font face="Menlo"><span style="font-size: 15px;">@end</span></font></div></body></html>