Browsing Objective-C 2 Properties
November 20, 2007 by Philippe Mougin
In F-Script 2.0, the object browser allows navigating Objective-C 2 properties. Adding this feature was pretty easy, using the class_copyPropertyList() and 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 foo of myObject
myObject foo
Example: setting the property foo of myObject to 10
myObject setFoo:10
Hm, Magenta? Maybe consider something a little less garish (if it’s lower luminance, the contrast, thus the readability is better too…)
Like:
NSCalibratedRGBColorSpace 0.376471 0.105882 0.419608 1
or something that even further evokes the colors of rich red French wine!
NSCalibratedRGBColorSpace 0.323864 0.0610915 0.223267 1
Hi JC,
I like the first one. Maybe not as much as magenta, tough :-)