3 ms·
This looks cool. Data modeling in Cocoa has, historically, been kind of terrible. It doesn't look like there's a solid story for persistence yet, though (i.e. w
by aaronbrethorst 14y ago
This looks cool. Data modeling in Cocoa has, historically, been kind of terrible. It doesn't look like there's a solid story for persistence yet, though (i.e. writing data to sqlite). Is that accurate or am I missing something?
- weaksauce 14y agoI don't see storage integration as a default. The example talks about having free conformance to the NSCoding interface so you can archive it that way if you don't need the relational baggage. [1] and [2] Though, there is nothing stopping you from writing your own layer that uses the models here to read and write to another backing store like sqlite. 1. https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/Archiving/Articles/creating.html#//apple_ref/doc/uid/20000949-BABGBHCA https://developer.apple.com/library/mac/#documentation/Cocoa... 2. http://www.raywenderlich.com/1914/how-to-save-your-app-data-with-nscoding-and-nsfilemanager http://www.raywenderlich.com/1914/how-to-save-your-app-data-...