In F-Script 2.0, the object browser allows navigating Objective-C 2 properties. Adding this feature was pretty easy, using the
property_getName() functions provided by the Objective-C runtime. The hardest part was to choose the color of the properties sections in the browser. Magenta looks fine…
No new syntax is needed to access properties using F-Script, as accessors are automatically generated by Objective-C.
Example: reading the property
Example: setting the property
myObject to 10