开发者

How to get file path of a CalCalendarItem?

I want to add meta data to an iCal event (task) with OpenMeta. Therefor I need the path to the file that contains the event (task). Is there a possibility to get this programmatically i开发者_如何转开发f a have a certain CalCalenderItem?


The simple answer is you can't. CalendarStore makes no guarantees about where/how it will store the data, only that it will store it.

In practice (at least right now), everything is kept in a SQLite Core Data store. Files for each individual item are then generated for the benefit of Spotlight.

As I understand it, you are wanting to find the location of those Spotlight files and add metadata to them. But even if you do locate them (which there's no API for), when the main store is next updated it will probably overwrite your modified record with a fresh version anyhow, defeating what you want.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜