[ 
https://issues.apache.org/jira/browse/CB-274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13225394#comment-13225394
 ] 

Oleg Gryb commented on CB-274:
------------------------------

@Shazron If you ask me then ARC - is the only thing that I care about, because 
Apple recommended it, our team uses it as a standard and nobody seems to want 
to be in a memory management business, but I've seen rants at some forums where 
hard core Mac programmers were saying that they do want to be in the memory 
management business, because they can deliver more efficient code this way. I'm 
not sure how important that is for PhoneGap community, so make your own 
judgement or create a poll and let the people vote. 
                
> 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

        

Reply via email to