core-data Questions
2
I have a List showing CoreData FetchedResults.
I would like to implement the possibility to move row and at the same time update the order attribute of the entity.
FetchedResults is not an array so...
Frissell asked 28/3, 2020 at 15:40
3
I'm having a bit of trouble trying to get iCloud working with my app. I tried following Tim Roadley's example here, but still get the log below appearing whenever the app is launched via Xcode (syn...
3
Solved
Is there an internal ID variable or timestamp I can use in a NSSortDescriptor to retrieve Core Data entities in the order they were inserted?
I would rather not have to create such properties if t...
2
Solved
Goal
I want to delete an item from a SectionedFetchRequest on a ForEach inside a List. The only solutions I have found are for a regular FetchRequest I have managed to delete it from the UIList but...
1
I have recently been getting the error every time I run my app without fail: Thread 1: EXC_BAD_ACCESS (code=2, address=0x16ee77ff4)
func loadTrays(with request: NSFetchRequest<Tray> = Tray.f...
Lundgren asked 30/11, 2019 at 0:26
2
Solved
In the summer, Apple published an informative sample app on sharing objects between iCloud users using Core Data, CloudKit and UICloudSharingController in SwiftUI.
However, adding more participants...
3
At WWDC19 session 204 it was shown how to build a UI using Swift 5.1 and the List function.
I would like to use Core Data instead of having a data file.
The problem is that the core data entity doe...
7
I have a model file thats named "Model". If I rename it to "SomeOtherName" it just does not get loaded.
initWithContentsOfURL returns nil and:
mergedModelFromBundles: [NSArray arrayWithObjects:[...
5
Solved
I want to change the order of the rows in a list that retrieves objects from the core data. Moving rows works, but the problem is that I can't save the changes. I don't know how to save the changed...
8
Solved
In CoreData I have defined an unordered to-many relationship. This relationship is defined in Swift like this:
@NSManaged var types : NSMutableSet
However, to use Swift at it's best, I want to u...
3
I have written this app in Swift 5 and is already LIVE in App Store.
Now, I just want to add a new single boolean attribute to one existing entity in coredata.
For this purpose, I followed steps:
...
Nonoccurrence asked 20/1, 2021 at 13:46
6
Solved
Working on an app where I have a large collections of managed objects against which I want to fetch a few random instances.
My question is, is there any way I can use NSPredicate and NSFetchReques...
Glad asked 13/5, 2010 at 21:42
4
Solved
What I have in my iOS app is:
TO DO ITEMS
To do item 3
24/03/2020
------------
To do item 2
24/03/2020
------------
To do item 1
23/03/2020
------------
What I would like to have is:
TO DO ITE...
Veritable asked 24/3, 2020 at 13:3
3
Solved
My macOS application is a mess right now. I made some big changes to my Core Data model, and now, just launching the app causes the app and Xcode to crash. The app's crash log reveals the following...
23
Typically, the sqlite store file for core data apps is located in
Library>Application Support>iPhone Simulator>7.1(or whichever version you are using)>Applications>(Whichever folder contains yo...
Cresting asked 10/6, 2014 at 4:45
4
Solved
I'm using xcode 13 and making a demo on coredata.
objc[6188]: Class _PathPoint is implemented in both
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreS...
Supremacist asked 17/11, 2021 at 14:49
3
I developed core data based app and implemented iCloud sync feature after it was introduced in iOS 13.
I enabled iCloud kit, used NSPersistentCloudKitContainer instead of NSPersistentContainer and...
26
I created a Core Data model in xcode 3.2 and after upgrading in Xcode 4.2, I then added a new entity of the NSManagedObject subclass (refer to the new entity).
First thing, it looks weird because ...
1
How to refresh swiftUI view automatically after Core Data updating in background, without onAppear method being called?
struct Page1: View {
@FetchRequest(entity: Word.entity(), sortDescriptors: ...
Assonance asked 9/12, 2019 at 14:33
3
I need to count last streak of days, but can't figure out how to do this.
For example I got core data like this:
|id| isPresent(Bool)| date(NSDate)|
|==|================|=============|
| 1| 0| 201...
Mora asked 16/2, 2016 at 7:43
7
Solved
Background
I've already posted a question about the basics of sharing a Core Data store between processes.
I'm trying to implement the recommendations given and I'm running into problems.
My Goa...
2
Solved
I want to display data fetched from Core Data in a widget. But @FetchRequest doesn’t work on widgets.
As I understand, we have to create an app group and make a shared persistent container.
What I ...
1
Solved
Question:
How to reset Xcode's Preview Canvas? Specifically, how to erase all the Core Data in Canvas created in Canvas' Live Preview?
Example code:
This is SwiftUI preview code I am using for Canv...
2
I have a coredata entity with an attribute id of type String
when trying to reference that attribute from a key path it throws an error
let path = #keyPath(User.id) //Ambiguous reference to member ...
Displeasure asked 7/8, 2020 at 11:8
2
I would really like to avoid using NSManagedObjectID as a way to connect my model structs to their CoreData objects. I mean something like this:
Say I have a Book entity in CoreData and then I have...
Curtsy asked 2/4, 2020 at 11:33
© 2022 - 2024 — McMap. All rights reserved.