Thrift has proven to be really useful on the iPhone so I've been making some modifications to the generated Objective-C code to be a little more iPhone-friendly, most recently generation of Objective-C 2.0 properties. Apple uses properties widely in its iPhone sample code and for developers that also use them it helps the Thrift model objects fit in a little better with the rest of the application.

The issue with this change is that on the Mac side Objective-C 2.0 requires targeting OS X 10.5 or later. To handle this I added an "objc2" option to the Cocoa compiler, but it occurred to me that most developers I know are targeting 10.5 for new development and on the iPhone this is a non-issue since all releases support objc 2.0.

Before submitting the patch I was curious as to what others thought about this - should Objective-C 2.0 features be opt-in or become the new default with an opt-out option?

Matt

Reply via email to