Re: [Pyobjc-dev] CoreData problem
Brought to you by:
ronaldoussoren
From: Ronald O. <ron...@ma...> - 2010-01-13 20:51:00
|
On 12 Jan, 2010, at 23:46, Aahz wrote: > On Fri, Jan 08, 2010, Mark Woollard wrote: >> >> I have the following code in both Objective-C (compiled as Cocoa >> tool) and Python as below, with the same input arguments both run to >> completion without error however the ObjectiveC version creates the >> sqlite3 db file and the python version doesn't. I'm stuck as to why >> and was planning on using python in this way to populate database for >> shipping in app bundle. Anyone got any clues? > > Why not just use the built-in sqlite3 library in Python? (Someone who > actually knows Objective-C would need to answer your stated question.) One reason to use CoreData instead of sqlite is convenience: CoreData implements more of a standard application for you (such as bits of undo handling) and that makes it easier to write basic applications. Another one is interaction with an ObjC application that uses the same CoreData database. Ronald |