gpt4 book ai didi

cocoa - Cocoa 中有类似 [aCalCalendar setType] 的东西吗?

转载 作者:行者123 更新时间:2023-12-03 17:35:37 25 4
gpt4 key购买 nike

我可以在我的 Cocoa 程序中生成一个使用(例如)Google 的新 CalCalendar 吗?换句话说,我可以设置 CalCalendar 对象的类型吗?我知道我可以阅读它,但似乎没有 [aCalCalendar setType] 方法之类的东西......

最佳答案

没有。在“Creating Calendars ”下,文档指出:

You create a calendar object using the calendar class method of CalCalendar. Optionally, you can then set the color, notes, or title properties. Currently, you can create iCal calendars only.

正如您在问题中提到的,CalCalendar 对象的 type 属性被定义为只读,这意味着您目前运气不好。

关于cocoa - Cocoa 中有类似 [aCalCalendar setType] 的东西吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10287813/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com