我正在尝试将 GuiCocoa/Calendar 实现到我的项目中,该项目使用 ARC
这是 GitHub 链接: https://github.com/guicocoa/calendar
我浏览了源代码并我正在尝试使其“ARC友好”以在我的项目中使用,但我不太熟悉ARC(但是,我确实要继续使用它),所以有人可以帮助我吗?
或者也许是一个更简单的解决方案 - 是否有一个链接器我可以放入我的项目中,它只会留下那个“文件夹”,我可以继续我的快乐之路? :)
谢谢 rnc505
Here's the GitHub link: https://github.com/guicocoa/calendar
I went through the source code and I'm trying to make it "ARC friendly" for use in my project, but I'm not very well versed in ARC (however, I do with to continue using it), so can someone help me out?
Or maybe an easier solution -- is there a linker I can put into my project where it'll just leave that "folder" alone and I can go on my merry way? :)
THanks
rnc505
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
对各个文件使用
-fno-objc-arc
。请参阅禁用某些文件的自动引用计数和如何禁用 ARC 中的单个文件一个项目?
我为我正在使用的一些库做了这个,并在使用 ARC 几个月后回来并自己清理了它们。在充分了解 ARC 之前,您确实不想这样做,所以您的直觉是正确的。
Use
-fno-objc-arc
for the individual files.See Disable Automatic Reference Counting for Some Files and How can I disable ARC for a single file in a project?
I did this for some libraries that I was using and came back after months of using ARC and cleaned them up myself. You really don't want to do it before you understand ARC well, so your instinct is right on.
或者您可以将项目转换为 ARC。我在 GitHub 上分叉了它并做到了。我需要一个这样的项目,所以认为它对我来说无论如何都是有用的。这是我的叉子:
https://github.com/mattjgalloway/calendar
Or you could go and convert the project to ARC. I forked it on GitHub and did it. I need a project like this so thought it'd be useful for me anyway. Here's my fork:
https://github.com/mattjgalloway/calendar