我正在尝试将 GuiCocoa/Calendar 实现到我的项目中,该项目使用 ARC

发布于 2025-01-04 11:43:43 字数 291 浏览 7 评论 0原文

这是 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

九歌凝 2025-01-11 11:43:43

对各个文件使用 -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.

请别遗忘我 2025-01-11 11:43:43

或者您可以将项目转换为 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文