Objective-C 2.0 properties
--------------------------
Key: THRIFT-521
URL: https://issues.apache.org/jira/browse/THRIFT-521
Project: Thrift
Issue Type: Improvement
Components: Compiler (Cocoa)
Reporter: Matt Stevens
On platforms that support them it would be useful to declare Objective-C 2.0
properties in the generated objects. If a developer is using properties in
their code this can help the generated objects fit in a little better with the
rest of the project.
To maintain compatibility with with pre-10.5 systems the property declarations
can be wrapped by a platform-specific ifdef:
{code}
#if TARGET_OS_IPHONE || (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5)
@property (nonatomic, getter=fancyBool, setter=setFancyBool:) BOOL fancyBool;
@property (nonatomic, retain, getter=title, setter=setTitle:) NSString * title;
#endif
{code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.