Questions tagged [xcdatamodel]
113 questions
0
votes
1 answer
xcdatamodeld no xcdatamodel visible
I am working in xcode5. The project I have contains ProjectName.xcdatamodel.
I now want to sustain upgrade to the project I have. When I tried to Add Version Model, I can see in packet ProjectName.xcdatamodeld. When I click on this, I don't see…

just ME
- 1,817
- 6
- 32
- 53
0
votes
2 answers
Core data model, game has a winner and a loser, a player has multiple games?
I'm trying to setup my core data model. I want to have a game that has one loser and one winner. And I need a Player that has multiple games.
I have the following:
Entity:
Player
Attributes:
wins,
losses,
name
Relationships:
games…

SirRupertIII
- 12,324
- 20
- 72
- 121
0
votes
1 answer
iOS: Keep track of the sequence of NSSet objects
I want have a variable NSSet photos and it stores the photos randomly in my Xcode xcdatamodel. I know NSSet is use to store random object but is there a way to either change the NSSet to NSArray or keep track of the sequence insert in the NSSet…

shoujo_sm
- 3,173
- 4
- 37
- 60
0
votes
1 answer
Model validation causes iOS app to crash
I have an object with an attribute in my xcdatamodel that has validation around it (it must be between 0 and 100).
However, when a value is entered with a value out of range it causes the app to crash when I try to save the object.
Having come from…

Gerard
- 4,818
- 5
- 51
- 80
0
votes
1 answer
iOS xcdatamodel newly added attribute has quotation mark
I just migrated my new data model and added a new attribute called "author_mail".However I discover at when I output my records:
attachments = "";
author = nil;
"author_mail" = nil; <-- ABNORMAL
category1…

shoujo_sm
- 3,173
- 4
- 37
- 60
0
votes
1 answer
Core Data dataModel, iOS
I plan to create an application for iOS using Core Data, which will help my client in managing their designed clothes. I'm thinking about the database structure and I'm a little bit confused because, I don't know if my structure will be enough for…

sonoDamiano
- 185
- 1
- 12
0
votes
1 answer
Core Data duplicate project for update of a submitted app
i have submitted an app on the app store that uses core data.
The problem is that i duplicated my project and then lost the first source code. If i update the app using the "duplicated" source code does it delete all core datas users may have…

r4id4
- 5,877
- 8
- 46
- 76
0
votes
1 answer
Using CDATA in xml attribute?
I wish to have an attribute in xml language, which content shouldn't be parsed.
It may contain javascript code, which probably contains many '&,|' and other operator types.
Im aware that the Text node can be a CDATA value, but how can I do the same…

buddy123
- 5,679
- 10
- 47
- 73
0
votes
1 answer
Issue deleting reflexive relationship of NSManagedObject
I have an entity "Person" which has a relationship "parent". Say I created 2 "Person" entities: "Mother" and "Child", and set the parent attribute of "Child" to "Mother".
Scenario 1: I set the inverse of "parent" relationship. When I view…

iPhoneJavaDev
- 821
- 5
- 33
- 78
0
votes
1 answer
Re-add the xcdatamodel to the Build Settings
While I was busy trying out stuff for this question, I accidently removed the xcdatamodel-package.
I found out that recently there was this question which mentioned the following:
For some reason, the xdatamodel was removed from the build settings.…

Joshua W
- 111
- 10
0
votes
1 answer
Can't Add Reference to xcdatamodelId
I have an xcdatamodel file in a static library. To reference the file in my main app, I dragged the file into the main app through xcode. This worked great. I added a version to the xcdatamodel file. This created an xcdatamodelid file. If I try…

JeffRegan
- 1,322
- 9
- 25
0
votes
2 answers
Saving a uint8_t ciphertext into DataModel
I am building a simple iphone (SDK6.1) application that encrypts some user's notes, stores the into a database and when user enters a password (does not need to be encrypted) it will decrypt his notes and show them to him.
For the database i am…

George Nikolaides
- 1,386
- 12
- 21
0
votes
1 answer
How to generate class diagram from xcdatamodel?
Is there any tool available which can generate a class diagram from existing xcdatamodel?

nitz19arg
- 417
- 7
- 18
0
votes
1 answer
Loading a core data database without having the data model?
Is it possible to load an existing core data database into an app and access it like a normal core data store if I don't have the corresponding .xcdatamodeld file? Is there a possibility to rebuild a fitting .xcdatamodeld from the database? Either…

DarkCell
- 170
- 1
- 11
0
votes
2 answers
What type should be used to store year property in Core Data?
I thought of Integer 16, because it's easy to calculate years, depending from it.
String is good for searching, for ex. it's easy to find year 78 as substring from 1978.
And it's also possible to keep year as Date.
What's the best practice?

Shmidt
- 16,436
- 18
- 88
- 136