Property Generator

Please share your functions/code-snips

Property Generator

Postby udo.killermann » Sat Jun 02, 2012 9:44 am

Hello Board,

I just finished a little utility. You enter the name and type of a variable and it generates the corresponding property methods for you. Afterwards you can copy the text (command-C) and paste it into your OB code window. The definition for the setter is on the one hand KVC compliant and on the other hand OB compliant. If you have a variable named "thing" KVC expects you to use "setThing" (camel notation so the first character is upper case ), whereas OB expects "setthing" with no case conversion at all.

The UI is straight forward:
propertyGenerator.jpg (38.1 KiB) Viewed 1030 times

Kind regards,
(761.13 KiB) Downloaded 165 times
MacBook (2GHz, 4 GByte) - Lion (10.7.3)
started Objective Basic coding in April 2010 - still enjoy it ;-)
Posts: 247
Joined: Thu Apr 08, 2010 6:46 am
Location: Hannover, Germany

Return to Code examples

Who is online

Users browsing this forum: No registered users and 1 guest