<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>A function could be added to query the optional/required state of the property.</div><div><br></div><div>Please either file an enhancement request in bugzilla, or even better, see if you can provide a patch for reviewing.</div><br><div><div>On Jun 19, 2013, at 7:52 AM, Muhammad Hussein Nasrollahpour <<a href="mailto:iapplechocolate@me.com">iapplechocolate@me.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div 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></div>_______________________________________________<br>cfe-dev mailing list<br><a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev<br></blockquote></div><br></body></html>