You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Matt Stevens (JIRA)" <ji...@apache.org> on 2009/06/05 17:06:07 UTC

[jira] Updated: (THRIFT-521) Objective-C 2.0 properties

     [ https://issues.apache.org/jira/browse/THRIFT-521?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matt Stevens updated THRIFT-521:
--------------------------------

    Attachment: thrift-521.patch

Patch implementing Objective-C 2.0 property generation. Properties wrap the existing getter and setter functions to insure the internal data structures are still updated properly.

> 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
>         Attachments: thrift-521.patch
>
>
> 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.