objective c - Adding Entity References to Core Data -


ii trying use core data ios application , have been reading many tutorials , still confused. using iphone add reference or adding them programmatically 2 ways add row? mean if had product catalog of 20 items need type code 20 times? or add row because application supposed read-only. or better off wth sqlite instead of core data? in advance.

the easiest way write quick mac app editing, using same data model file.

if you're using xcode 3, this. create new mac app uses core data, , drag in data model (removing default data model creates you). then, open .xib file mac app's main window in interface builder. switch xcode , open data model.

pick entity want editor for. hold down option (alt), , drag entity data model editor interface builder. automatically creates user interface editing database, can save , run through xcode.

make sure mac app creating sqlite data store (look through code xcode created default, may have defaulted xml , you'll have change it). file app creates can dropped straight iphone app.

sadly, xcode 4 can't automatic laying out of database editing ui. if you're using xcode 4, you'd have lay out ui manually.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -