Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B7F479836 for ; Thu, 8 Mar 2012 19:12:19 +0000 (UTC) Received: (qmail 68309 invoked by uid 500); 8 Mar 2012 19:12:19 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 68269 invoked by uid 500); 8 Mar 2012 19:12:19 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 68195 invoked by uid 99); 8 Mar 2012 19:12:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Mar 2012 19:12:19 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_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; Thu, 08 Mar 2012 19:12:18 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 537AE10076 for ; Thu, 8 Mar 2012 19:11:58 +0000 (UTC) Date: Thu, 8 Mar 2012 19:11:58 +0000 (UTC) From: "Shazron Abdullah (Commented) (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <1028774194.39815.1331233918343.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1301536129.4956.1329931668614.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CB-274) iOS PhoneGap Template Project is not Compilable with default Apple's ARC compiler 3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CB-274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13225413#comment-13225413 ] Shazron Abdullah commented on CB-274: ------------------------------------- This is where we are going eventually - ARC. Personally I am in the camp of doing what's easiest for devs. "More efficient" perhaps in context of their apps (games?), but for Cordova that is not relevant for the app space we are in. I'll post a message on the PhoneGap Google Groups regarding ARC. > iOS PhoneGap Template Project is not Compilable with default Apple's ARC compiler 3.0 > ------------------------------------------------------------------------------------- > > Key: CB-274 > URL: https://issues.apache.org/jira/browse/CB-274 > Project: Apache Callback > Issue Type: Bug > Components: iOS > Affects Versions: 1.4.0 > Environment: Mac OSX 10.7 XCode 4.2 > Reporter: Oleg Gryb > Assignee: Shazron Abdullah > Fix For: 1.6.0 > > > The default and recommended compiler on Mac is Apple's LLVM 3.0 and this is the only one that supports ARC, however PhoneGap uses GCC LVM 4.2 and when I tried to change the compiler to Apple's, I got syntax errors. I've changed the PhoneGap code as described below, but I'm not sure if it will affect anything: > AppDelegate.m > // self.window = [[[UIWindow alloc] initWithFrame:screenBounds] autorelease]; > self.window = [[UIWindow alloc] initWithFrame:screenBounds]; > ... > // self.viewController = [[[MainViewController alloc] init] autorelease]; > self.viewController = [[MainViewController alloc] init]; > ... > - (void) dealloc > { > // [super dealloc]; > } > main.m > // NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; > int retVal = UIApplicationMain(argc, argv, nil, @"AppDelegate"); > // [pool release]; -- 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