Return-Path: X-Original-To: apmail-thrift-dev-archive@www.apache.org Delivered-To: apmail-thrift-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8BA1D9C90 for ; Mon, 26 Dec 2011 14:58:53 +0000 (UTC) Received: (qmail 14742 invoked by uid 500); 26 Dec 2011 14:58:53 -0000 Delivered-To: apmail-thrift-dev-archive@thrift.apache.org Received: (qmail 14692 invoked by uid 500); 26 Dec 2011 14:58:53 -0000 Mailing-List: contact dev-help@thrift.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@thrift.apache.org Delivered-To: mailing list dev@thrift.apache.org Received: (qmail 14684 invoked by uid 99); 26 Dec 2011 14:58:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Dec 2011 14:58:53 +0000 X-ASF-Spam-Status: No, hits=-2001.3 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Dec 2011 14:58:51 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id EE1C512954D for ; Mon, 26 Dec 2011 14:58:30 +0000 (UTC) Date: Mon, 26 Dec 2011 14:58:30 +0000 (UTC) From: "Jake Farrell (Commented) (JIRA)" To: dev@thrift.apache.org Message-ID: <440617619.45217.1324911510986.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1110062432.15612.1315794908999.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (THRIFT-1340) Add support of ARC to Objective-C MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/THRIFT-1340?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13175943#comment-13175943 ] Jake Farrell commented on THRIFT-1340: -------------------------------------- Can you please create a new ticket under the website component and attach the how to in markdown format for this. > Add support of ARC to Objective-C > --------------------------------- > > Key: THRIFT-1340 > URL: https://issues.apache.org/jira/browse/THRIFT-1340 > Project: Thrift > Issue Type: Improvement > Components: Cocoa - Compiler, Cocoa - Library > Affects Versions: 0.7 > Environment: Mac OS X Lion, iOS 4.2, 4.3, 5.0.. > Reporter: HIRANO Satoshi > Assignee: HIRANO Satoshi > Fix For: 0.9 > > Attachments: THRIFT-0.8.0-dev_cocoa_ARC.patch > > Original Estimate: 24h > Remaining Estimate: 24h > > Objective-C in Xcode 4.2 supports ARC (Automatic Reference Counting, not GC but similar) and now it is the default both on OS X Lion and iOS 5. (ARC works on iOS 4.2 or higher.) > The conventional Objective-C code includes many retain/release/autorelease for maintaining the life time of objects. > Since the latest Objective-C compiler automatically generates stubs for reference counting, code should not include any retain/release/autorelease. > Many Mac OS/iOS projects are moving to ARC mode. Although we can specify a compiler flag which tells ARC or no-ARC file by file in Xcode 4.2, there is no means to tell the Xcode that files generated by the thrift compiler are no-ARC. Xcode produces many error messages like "retain is not allowed in ARC mode". > So, the thrift compiler should support ARC mode. > What we need are: > 1) add -objc-arc flag to the thrift compiler. > 2) If -objc-arc flag exists, omit generating code for retain/release/autorelease. > Please look at "Programming with ARC reference notes" in iOS developer library. > http://andpdas.com/wp-content/uploads/2011/06/ARCProgrammingGuide.pdf -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira