如果用户正在编辑复杂数据,那么最好使用 Core Data 或 SQLite。 Core Data 是一个更高级别的接口,设计用于与 Cocoa 一起使用。 SQLite 也可以完成这项工作,但我可能建议仅在您已经熟悉它的情况下使用它。
Property lists are very handy when you have static data. There's a structured editor built right into Xcode and they show up in code as instances of NSArray and NSDictionary. But they aren't really designed for managing changing data, they are just a serialisation format.
If the user is editing complex data, you're better off using Core Data or SQLite. Core Data is a higher level interface designed to be used with Cocoa. SQLite would do the job as well, but I'd probably suggest only using that if you are already familiar with it.
发布评论
评论(1)
当您有静态数据时,属性列表非常方便。 Xcode 中内置了一个结构化编辑器,它们在代码中显示为
NSArray
和NSDictionary
的实例。但它们并不是真正为管理不断变化的数据而设计的,它们只是一种序列化格式。如果用户正在编辑复杂数据,那么最好使用 Core Data 或 SQLite。 Core Data 是一个更高级别的接口,设计用于与 Cocoa 一起使用。 SQLite 也可以完成这项工作,但我可能建议仅在您已经熟悉它的情况下使用它。
Property lists are very handy when you have static data. There's a structured editor built right into Xcode and they show up in code as instances of
NSArray
andNSDictionary
. But they aren't really designed for managing changing data, they are just a serialisation format.If the user is editing complex data, you're better off using Core Data or SQLite. Core Data is a higher level interface designed to be used with Cocoa. SQLite would do the job as well, but I'd probably suggest only using that if you are already familiar with it.