cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-2805) ARC weak reference issue in 10.7
Date Mon, 25 Mar 2013 21:41:15 GMT

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

Shazron Abdullah commented on CB-2805:
--------------------------------------

The fix is to conditionally compile the __weak in:

{code}
#ifdef __MAC_10_8
    __weak
#endif
    CDVViewController* _viewController;
{code}
                
> ARC weak reference issue in 10.7
> --------------------------------
>
>                 Key: CB-2805
>                 URL: https://issues.apache.org/jira/browse/CB-2805
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: OSX
>         Environment: OS X Lion 10.7
>            Reporter: Shazron Abdullah
>            Assignee: Shazron Abdullah
>             Fix For: 2.6.0
>
>
> Once you workaround CB-2804, you get this error:
> CDVCommandDelegateImpl.h:27:5: error: class is incompatible with __weak references
>     __weak CDVViewController* _viewController;
> Workaround is to remove the __weak annotation, since NSViewController does not support
ARC weak references.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message