Cocoa Tutorial: Core Data Introduction in iOS and Mac OS Programming Part 3

preview_player
Показать описание
TUTORIAL 3 OF 3
In this tutorial you are going to use the Core Data helper class you created in part 2 to add data to your database as well as retrieving it.

***TUTORIAL FILES*****

***COMMENTS****
If you have questions about the video or Cocoae programming. Please comment below.

Рекомендации по теме
Комментарии
Автор

Brian Advent Hi, thank u for the great tutorial. Can u please show how to retrieve data from entity that has relationship with other entity. Person that has a value in Postaladdress. How to retrieve that? I'm a bit confused on that part. Thank u again for your great effort.

mororo_rider
Автор

Thanks for this tutorial. What happened to Postal Address relation? Can you please tell us how Person<-->PostalAddress works?

KrupalGhorpade
Автор

Prefix header is not located in supporting files. What to do? I'm using Xcode 7.1 and OS X 10.10.5

sorrybhai
Автор

Great tutorial!

But `+(NSString*) directoryForDatabaseFilename` should be `+(NSURL*)

and you don't need

`NSString* path = [NSString stringWithFormat:@"%@/%@", [CoreDataHelper directoryForDatabaseFilename], [CoreDataHelper databaseFilename]];`

you can do this instead

NSURL* url = [[CoreDataHelper directoryForDatabaseFilename] URLByAppendingPathComponent: [CoreDataHelper databaseFilename]];

other than that everything worked great!

chadscira
visit shbcf.ru