Join Simon Allardice for an in-depth discussion in this video Creating and configuring attributes, part of Core Data for iOS and OS X.
So, let's see how to work with attributes.…I'm going to just go ahead and create a new master detail project, again, using Core Data.…As we've seen, selecting any entity in our data model gives us these three sections on the right.…These are representing the three kinds of property that every entity consists of: Attributes,…Relationships, and Fetched Properties.…And this is pretty much the order of their importance, and the time that you'll spend with them--…by far the most important is the Attributes where we define the data of each entity.…
There are relationships between entities, but there don't have to be any in bringing up…the rear fetched properties.…These are a little more obscure, and we'll come back to these when we talk about fetching.…So what we're going to work on here are attributes.…Now there is such thing as an attribute that's floating out there by itself.…All attributes belong to an entity.…Right now, we have one called timeStamp with a type of Date.…Every attribute must have a name and a type.…
- Understanding Core Data and object persistence frameworks
- Creating a Core Data project
- Exploring data modeling
- Creating entities, attributes, and relationships
- Creating managed objects
- Fetching in Core Data
- Implementing undo and redo support
- Creating a Core Data Cocoa app without code
- Responding to validation issues
- Converting store types
- Preloading default data
Skill Level Intermediate
Q: In the CoursesViewController.m file, I receive a message that the method dismissModalViewControllerAnimated is no longer supported by Apple. Is there a newer method to use?
A: You may have received the warning that a call to the dismissModalViewControllerAnimated: method is now deprecated.
This is a recently deprecated method, so the code _will_ continue to work using that call, but to remove the warning, change the code from:
to the current recommended version:
[self dismissViewControllerAnimated:YES completion:nil];
It should take care of that message.
1. Getting Started
2. Modeling in Core Data
3. Saving in Core Data
Creating managed objects12m 46s
4. Fetching in Core Data
Using predicates9m 32s
5. Putting It Together: iOS
6. Putting It Together: Cocoa
7. Store Types and Model Changes
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.