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 DCC6B9C81 for ; Thu, 10 May 2012 21:33:58 +0000 (UTC) Received: (qmail 52306 invoked by uid 500); 10 May 2012 21:33:58 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 52292 invoked by uid 500); 10 May 2012 21:33:58 -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 52282 invoked by uid 99); 10 May 2012 21:33:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 May 2012 21:33:58 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of shazron@gmail.com designates 209.85.213.175 as permitted sender) Received: from [209.85.213.175] (HELO mail-yx0-f175.google.com) (209.85.213.175) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 May 2012 21:33:52 +0000 Received: by yenl13 with SMTP id l13so1428468yen.6 for ; Thu, 10 May 2012 14:33:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=ahY+8DPVy+FrRe+toFCUG5AH9kyFI5KkqpsfHqbio6s=; b=ura9FH0bgQCdjq7sPkagX+T685p5UUlIry3bWiOJV8jUrykoNqtFpBcF0iGikv0p99 Xi4EEgxNvJX0rWT5u8OkQbJrMWSxMbKkpGxffPOWKjKtMlCV70XDFsihJDs18ZFglVsN Um0CF9eRkgpoJIOvEnCboZVRPvTTI2p0BNBMQyRGGU1Ihm7rEILZhR0gpY1KWvLtITrS 0V97aTX1c430TZ2TTJxEFNSoCLd0RaKgN9iWI51YqMCSBoNXSXqEXxrjrUX2jEyLI4/C l413waHAcB3i8JMQ+MYvGimnAXioJJDCMxGLmy14le44lspa336gkSKTmaXDEAG4XmEN f3sw== Received: by 10.50.41.165 with SMTP id g5mr362070igl.13.1336685611322; Thu, 10 May 2012 14:33:31 -0700 (PDT) MIME-Version: 1.0 Received: by 10.42.141.201 with HTTP; Thu, 10 May 2012 14:32:51 -0700 (PDT) In-Reply-To: References: From: Shazron Date: Thu, 10 May 2012 14:32:51 -0700 Message-ID: Subject: Re: [iOS] Going ARC To: callback-dev@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Resurrecting this. My latest comment (duped below): https://issues.apache.org/jira/browse/CB-274?focusedCommentId=3D13272771&pa= ge=3Dcom.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comme= nt-13272771 ----------- D'oh - we can't have dual support of course, since this is compile time and we ship a built binary for the framework. We'll have to turn it on, and require ARC. The problem is, all the plugins will need to upgrade as well. This then becomes a communication issue that we will need to send to devs ahead of time. We can push this to 2.0 but we must have an extended RC period to iron out the bugs, but we can start blogging about this change now. If are to push it to now (1.8.0) my suggestion is to exclude ARC for CDVPlugin, and instruct users how to exclude ARC for their plugin files: http://stackoverflow.com/questions/6448874/disable-automatic-referen= ce-counting-for-some-files - this way there is a transition. We can also print out warnings in the console.log about the migration to ARC. ----------- Shaz On Thu, Mar 8, 2012 at 2:58 PM, Shazron wrote: > I'd rather not do #ifdefs and go whole hog on ARC. If we go ARC we > can't support iOS 3.x (see my previous email). > > The #ifdef you would use: > > #ifdef __has_feature(objc_arc) > =A0 =A0NSLog(@"ARC eh"); > #endif > > On Thu, Mar 8, 2012 at 12:16 PM, Patrick Mueller wrot= e: >> On Thu, Mar 8, 2012 at 14:14, Shazron wrote: >> >>> Ref: https://issues.apache.org/jira/browse/CB-274 >>> >>> I say we go ARC. >>> >> >> I think we need to support ARC. =A0The question is do we need to support= NOT >> using ARC as well. >> >> Presumably there's some pattern of leaving your retain/release calls in = the >> code, #ifdef'd, so they aren't used when your project is using ARC, and = are >> used when your project isn't. =A0Eventually, in theory, everyone is usin= g ARC >> all the time (just like we were going to use GC all the time!!), and we = can >> remove the #ifdef'y bits. >> >> -- >> Patrick Mueller >> http://muellerware.org