Re: adding eomodel to existing project
Re: adding eomodel to existing project
- Subject: Re: adding eomodel to existing project
- From: Radwar <email@hidden>
- Date: Thu, 5 Aug 2004 09:56:24 -0400
Basics: When you want to add a Model to a project, just drag the model
to the Resources Group of the project. In the resulting window do the
following:
1) Select if you want to "Copy items into the destination groups's
folder (if needed)". This means that the model is copied on to your
project, if you are dragging from some other directory. If you do not
select this then it will make a file reference to the location of the
model.
2) Select "Create Folder References for any added folders". This will
give you the blue folder icon. This means that it treats the Model file
as a folder. Essentialy the .eomodeld file is a folder with plists
inside it. So you need to create a folder reference for it.
If you select the "Recursively create groups for any added folders"
Then you will have the model name in a new group. This is represented
by the yellow folder icon. This means that the files, inside the
.eomodeld are added to the group it created with the model name, not
the modeld file itself. This will *not* work.
- when I add a model to an existing project using "Add Framework" it
also appears as a blue folder and it actually works
It is creating a folder reference here.
- however, whenever I add a model to an existing project using "Add
File" it appears in Xcode as a yellow folder. I can still view the
contents and all just like the blue folder, but it doesn't load the
model.
By default when you "Add File" the "Recursively create groups for any
added folders" is selected. For the model you do not want this, you
need to have the "Create Folder References for any added folders"
selected.
- when I add an EOModel when starting a new project, the model appears
as a single file with the little EOF icon in my Resources folder.
After building a few times (can't tell exactly when), it changes to a
blue folder that I can expand and view the contents of (various plist
files,etc).
When you add the model, a folder reference is made to the folder and
you see the model icon. If you close the project and reopen it you see
the blue folder icon (folder reference). I would say it is an Xcode
issue with icons.
Hope this helps.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.