Questions tagged [fetched-property]

30 questions
1
vote
1 answer

What does it mean that a fetched property is static and not dynamically updating itself?

Apple says in the NSFetchedPropertyDescription class reference: Note, however, that unlike a playlist a fetched property is static—it does not dynamically update itself as objects in the destination entity change. Nice, but what exactly…
openfrog
  • 40,201
  • 65
  • 225
  • 373
1
vote
2 answers

Fetched Properties - Predicate

I have a question about using fetched properties inside a NSPredicate (see below 'My question'). It's not about the predicate to get the fetched property. For clarification and for others, which may also face this problem I tried to make a small…
0
votes
1 answer

NSFetchRequest with recursive criteria or Fetched Property

I have an entity type Node with recursive relationship called parent (inverse children). Now I want to get all entities which are directly or indirect below a certain node (i.e. branch root node) other entity. Since I had no better idea, I created a…
0
votes
1 answer

Using the Xcode 4.2.1 Core Data Model Editor, how does one update a predicate for a fetched property?

When editing a predicate with the Core Data Model Editor in Xcode 4.2.1, how does one persist the updated predicate? Changing the value for the predicate does not seem to persist. The original predicate still applies to the fetched property. Steps…
sean woodward
  • 1,750
  • 1
  • 24
  • 36
0
votes
1 answer

xCode 4.2 core data how to create a fetched property using GUI in the data model editor?

I'm very new to the core data programming. I understand that the entities are tables, and I'd like to do the following: One table, "Record" has an attribute "recordID" in another table ("Event") I have a series of events associated with this record,…
Alex Stone
  • 46,408
  • 55
  • 231
  • 407
0
votes
2 answers

Stored NSFetchRequest returns error "A fetch request must have an entity"

I added a fetched property to my entity at data model. I did not add its predicate. I retrieve it with fetchRequestTemplateForName, but when execute it I got this error "executeFetchRequest:error: A fetch request must have an entity." But how come I…
Qiulang
  • 10,295
  • 11
  • 80
  • 129
0
votes
1 answer

Department's "Employee of the Month" -- Fetched Property? How? Or something else?

I have a Core Data database with Employees and Departments. Each employee belongs to one department and each department has many employees. So far, so good. I want to add the ability to store, for each department, their current Employee of the…
ConfusionTowers
  • 911
  • 11
  • 34
0
votes
0 answers

How to structure a Core Data object model whose class has many calculated properties?

Using Swift 4 Problem: I have a core data object graph for a soccer league with two entities: Team and Games, related with a one to many relationship (each Team can have many Games). Each game has two statistics: "goals for", and "goals against". I…
0
votes
1 answer

Core Data: Fetched attributes with joined tables

I have a Host which has a many-to-many relationship with services. The relation is through a join table "hostServices". I would like to fetch te services related to a Host via a "fetched property". But how do I define the predicate? I now did…
Leon
  • 841
  • 3
  • 10
  • 21
0
votes
4 answers

CoreData Entity Fetch Request

I have an entity called TimeInterval whose only attributes are a startDate and finishDate, their type is Date. I obviously do not need to add another attribute called totalTime because that can be calculated by doing: [finishDate…
0
votes
1 answer

CoreData Fetched Property referring to a different entity

I have a CoreData Entity named List it has a Relationship to an Entity Address. This is a one-to-many relationship seeing as an Address can be only be one List. Address entities have an Attribute flag which is an Integer 16. Is there a way for me…
Joseph
  • 9,171
  • 8
  • 41
  • 67
0
votes
0 answers

CoreData fetched property and RestKit 0.20.3: value for undefined key

I'm facing a big issue with fetched properties. I have this entities in the model: EntityDetail Attributes: NSString: idd_info [...] Fetched Property: Name: info Destination: EntityInfo Predicate:…
Donnit
  • 1,217
  • 12
  • 19
0
votes
1 answer

Load Core Data properties to textfields

I´m having trouble finding the proper way to load my saved core data to my textfields. I have a view with static cells and each cell has multiple textfields, nothing especial, the idea is just to fill the textfields and hit the button save, and…
0
votes
1 answer

Core Data cross storage fetched property

I'm currently wrapping my head around some problem with Core Data. I have one user model in its own store that I do not have any control over, as it gets shipped with a framework. A Persistent Store Coordinator, Managed Object Model and Context for…
BinaryBucks
  • 976
  • 7
  • 17
0
votes
2 answers

How can I created a fetched property to get the entity with a minimum field?

I can't solve this problem... I'm having some problems with fetched properties (not with fetched requests). How can I created a fetched property to get the entity with a minimum field? If you see these captures, you will see it: What I have to…
Ricardo
  • 2,831
  • 4
  • 29
  • 42
1
2