I am new to cocoa development.
I just created for the first time a new document type application using core data and notice a few strange things.
AppDelegate
is practically empty, there is no code to create the core data store, the managedObjectContext, nothing.Two files were added:
Document.m
andDocument.h
that I understand is the model for dealing with the documents the app will create.Even with no visible core data initialization code, Xcode created a
.xddatamodeld
file and this is the strange part: Xcode named the fileDocument.xcdatamodeld
. Normally Xcode would name that with the same name of the project. By naming itDocument
it is like saying that this model has something to do withDocument.m
andDocument.h
.
Is 1 and 3 a bunch of nonsense from Xcode or am I missing something?
Can you guys explain? Thanks.