Re: [Pyobjc-dev] CoreData problem
Brought to you by:
ronaldoussoren
From: Mark W. <ma...@ta...> - 2010-01-12 22:55:12
|
Figured this out - had an issue with the model and it wasn't saving - I didn't realise due to not catching on that the call was returning a tuple with error as second item. As to why not to use sqlite api, sqlite backs CoreData and want to load initial data through CoreData to ensure correct structures + data is written for reading in native compiled CoreData app. The python is a script to initialize the data during the app build. Anyway its working now! Mark On 12 Jan 2010, at 22: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.) > -- > Aahz (aa...@py...) <*> http://www.pythoncraft.com/ > > "If you think it's expensive to hire a professional to do the job, wait > until you hire an amateur." --Red Adair > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev |