How to deploy to Snow Leopard with ARC enabled

后端 未结 2 919
清歌不尽
清歌不尽 2020-12-09 21:43

I have an OSX app that I would like to migrate to ARC. Everything works fine if I set the base SDK to 10.7. But when I set it to 10.6 it does not work ( because it does not

2条回答
  •  北海茫月
    2020-12-09 22:00

    You might find PLWeakCompatibility useful. It allows you to use __weak variables on iOS 4 and OS X 10.6.

    Source code here: https://github.com/plausiblelabs/PLWeakCompatibility
    More info at http://www.mikeash.com/pyblog/introducing-plweakcompatibility.html

提交回复
热议问题