@@magnusagnwik9018 Hi Magnus. This is doable but tricky. I don't think the hard part will be the sorting of data (Core Data is really strong here). The hard part is displaying the graph. One way I have seen this done is through Core Graphics. I have an intro to Core Graphics in my Starbucks playlist. You can start there. Let me know how it goes. ua-cam.com/video/h1cviMbppdk/v-deo.html
Thanks for such a well-explained tutorial. I have one question regarding Core Data, how to connect it to the server. More specifically, do you have a tutorial where I can see how Core Data communicates with a server and pulls data online from an API and then writes it to Core Data, also to track changes on the server and synchronize them? Of course, it can also work in offline mode. It's very useful and specific, and a little different from this one.
Hi Jonathan, this is by far the most coherent tutorial on CoreData that I've come across. I have a couple of questions - When creating a new application with CoreData checked, the creation of the Persistent container takes place in App Delegate, and Apple recommends passing this container to other View Controllers as needed. Can you tell me the advantages of using the method you've described over that of Apple's recommended? Also, do I need to instantiate the class CoreDataManager anywhere?
Hi Calum. Thank you so much! Glad you enjoyed it. The main advantage of knowing how to set these things up from scratch is the ability to add CoreData after a project has already been created. If you are creating something new, by all means use the one Xcode provides. But by knowing how to create from scratch you have a little bit more flexibility in how you integrate CoreData into your project - which some projects need. Hope that helps!
Hi, I'm using Codable to decode json to NSManagedObject, decoding is success, but when save context is called app crashes with message encodeWithCoder:]: unrecognized selector sent to instance
Any other Core Data topics you'd like covered? Let me know below.
How to sort data in Data Core and then use it in a line chart. Dates on one data axis (Mon-Sun) and miles driven by car on the other, as an example.
@@magnusagnwik9018 Hi Magnus. This is doable but tricky. I don't think the hard part will be the sorting of data (Core Data is really strong here). The hard part is displaying the graph. One way I have seen this done is through Core Graphics. I have an intro to Core Graphics in my Starbucks playlist. You can start there. Let me know how it goes. ua-cam.com/video/h1cviMbppdk/v-deo.html
Would be nice to see example of two entities with relationship and how to create and update them
Hands down best explanation I've come across anywhere. Thanks for the help!
You're very welcome!
The nicest and easiest explanation I have come across by far 🙏🏻Thank you!
By far, the best explanation of Core Data on UA-cam. Thank you very much! Will you be posting SwiftUI videos in the future?
Agreed
Thank you Aerial. Yes eventually. But nothing planned at the moment.
Also agree! other tutorials are so confusing. Thank you this was clearest one I can find ^^
Nice voice, nice speed, no redundant code, no redundant explanation. Love the Video
Thank you. Zhaoyang. Its a balance between keeping it brief vs showing a lot of details. Thanks for sharing.
Thanks for keeping the intro simple and short. Hope you'll do more on CoreData
More to come!
Spending my Friday night trying to learn core data... fun times!
Isn't that how everyone spends their Friday nights?
I liked your videos and respected your experiences, please keep making more videos. Thank you.
Will do Muhammed. Thanks for tuning in.
Great video. Would like to see more on that topic
On it!
Nicely explained - very clear, thanks!
Glad you enjoyed it!
Thanks for putting this together! I'm just starting to learn Core Data. Cheers! 😊
Very welcome. I plan on doing more in the new future. Stay tuned!
Your video really helped me 😁
Awesome. Thanks for watching Danilo. Very welcome.
08:29 shouldn't be something like save(employee) ? Seems the arg employee: Employee is not used within the updateEmployee func..
lmao your right, closing and opening xcode magically made my model work.
Haha. Unfortunately its one of Xcodes greatest debugging techniques. Though it is getting better :)
Thanks for such a well-explained tutorial. I have one question regarding Core Data, how to connect it to the server. More specifically, do you have a tutorial where I can see how Core Data communicates with a server and pulls data online from an API and then writes it to Core Data, also to track changes on the server and synchronize them? Of course,
it can also work in offline mode. It's very useful and specific, and a little different from this one.
Did you make a video on updating without updating any attributes?
This is cool.
Hi Jonathan, this is by far the most coherent tutorial on CoreData that I've come across. I have a couple of questions - When creating a new application with CoreData checked, the creation of the Persistent container takes place in App Delegate, and Apple recommends passing this container to other View Controllers as needed. Can you tell me the advantages of using the method you've described over that of Apple's recommended? Also, do I need to instantiate the class CoreDataManager anywhere?
Hi Calum. Thank you so much! Glad you enjoyed it. The main advantage of knowing how to set these things up from scratch is the ability to add CoreData after a project has already been created. If you are creating something new, by all means use the one Xcode provides. But by knowing how to create from scratch you have a little bit more flexibility in how you integrate CoreData into your project - which some projects need. Hope that helps!
@@swiftarcade7632 It did, thanks
Hi, I'm using Codable to decode json to NSManagedObject, decoding is success, but when save context is called app crashes with message encodeWithCoder:]: unrecognized selector sent to instance
Hmmm. Not sure off the top of my head. I plan on doing some Core Data stuff in the future. I am sure I will ran into want you ran into then.
@@swiftarcade7632 I have found its solution
@@muhammadwaqas1219 Great to hear! What was it?
good video but you should know that not everyone is watching this on 30 inch display
Thanks for the feedback Filip. I will try to make the text larger next time. Cheers.