{"id":1234,"date":"2012-03-28T15:58:01","date_gmt":"2012-03-28T11:58:01","guid":{"rendered":"https:\/\/blog.alwawee.ru\/?p=1234"},"modified":"2012-03-28T16:10:05","modified_gmt":"2012-03-28T12:10:05","slug":"%d0%bf%d1%80%d0%b8%d0%bc%d0%b5%d1%80-%d0%b7%d0%b0%d0%bf%d1%80%d0%be%d1%81%d0%b0-%d0%b2-coredata","status":"publish","type":"post","link":"https:\/\/blog.alwawee.ru\/?p=1234","title":{"rendered":"\u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043e CoreData"},"content":{"rendered":"<p>Core Data &#8211; \u044d\u0442\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u043d\u043e\u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u043e\u0431\u043e\u043b\u043e\u0447\u043a\u0430 \u043d\u0430\u0434 \u0431\u0430\u0437\u043e\u0439 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432 iOS\/Mac OS. \u041f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u043e, \u0441\u0430\u043c\u0430 \u0441\u043b\u0435\u0434\u0438\u0442 \u0437\u0430 Commitment Control, \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u0432\u0435\u0440\u0441\u0438\u044f\u043c\u0438 \u0438 \u0442.\u0434. <\/p>\n<p>Persistent Store &#8211; \u044d\u0442\u043e &#8220;\u043d\u0430\u0434\u0435\u0436\u043d\u043e\u0435&#8221; \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u0434\u0430\u043d\u043d\u044b\u0445. (NSPersistenStoreCoordinator). \u0414\u0430\u043d\u043d\u044b\u0435 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0432 applicationDocumentsDirectory\/App.sqlite. \u0413\u0434\u0435 App.sqlite &#8211; \u044d\u0442\u043e \u0431\u0430\u0437\u0430 SQLite \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<br \/>\nContext &#8211; \u044d\u0442\u043e instance \u0431\u0430\u0437\u044b. \u041f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u043e\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u044f\u0442\u0441\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0438 \u0437\u0430\u0442\u0435\u043c \u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u044e\u0442\u0441\u044f (Commitment). \u0422\u0430\u043a\u0436\u0435 \u0437\u0430\u043f\u0440\u043e\u0441 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0438\u0437 Context. \u0423 \u043e\u0434\u043d\u043e\u0439 \u0431\u0430\u0437\u044b \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043c\u043d\u043e\u0433\u043e Context. \u0412 \u043a\u0430\u0436\u0434\u043e\u043c Context \u0435\u0441\u0442\u044c Managed Objects.<br \/>\nManaged Object &#8211; \u043e\u0431\u044a\u0435\u043a\u0442, \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043c\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u043c, \u043d\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u0432 \u043d\u0435\u0433\u043e \u0432\u043d\u043e\u0441\u0438\u043c \u043d\u0435 \u0432\u043d\u043e\u0441\u044f\u0442\u0441\u044f \u0432 Persistent Store \u0434\u043e \u0442\u0435\u0445 \u043f\u043e\u0440, \u043f\u043e\u043a\u0430 \u043c\u044b \u043d\u0435 \u0441\u0434\u0435\u043b\u0430\u0435\u043c Save. <\/p>\n<p><a href=\"https:\/\/developer.apple.com\/library\/mac\/#documentation\/Cocoa\/Conceptual\/CoreData\/cdProgrammingGuide.html#\/\/apple_ref\/doc\/uid\/TP30001200-SW1\" title=\"CoreData\" target=\"_blank\">CoreData<\/a> &#8211; Core Data Programming Guide<\/p>\n<p><a href=\"https:\/\/developer.apple.com\/library\/mac\/#documentation\/DataManagement\/Conceptual\/CoreDataSnippets\/Introduction\/Introduction.html#\/\/apple_ref\/doc\/uid\/TP40008285\" title=\"CoreDataSnippets\" target=\"_blank\">CoreDataSnippets<\/a> &#8211; Core Data Code Snippets<\/p>\n<p>\u0411\u0430\u0437\u043e\u0432\u044b\u0439 \u0437\u0430\u043f\u0440\u043e\u0441 \u0431\u0435\u0437 \u043f\u0440\u0435\u0434\u0438\u043a\u0430\u0442\u0430 \u0432\u0441\u0435\u0445 \u0441\u0442\u0440\u043e\u043a \u0438\u0437 \u0442\u0430\u0431\u043b\u0438\u0446\u044b: <\/p>\n<pre lang=\"Objective C\">\r\n+ (BOOL)basicFetch {\r\n    \/\/ Test Fetch of 1 item \r\n    \r\n    useDelegate\r\n    NSManagedObjectContext *context = appDelegate.managedObjectContext;\r\n    if (context == nil) {\r\n        NSLog(@\"Error: No context\");\r\n        return NO;\r\n    }\r\n    \r\n    NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] init];\r\n    NSEntityDescription *entity = [NSEntityDescription \r\nentityForName:@\"FLCatRanking\" inManagedObjectContext:context];\r\n    [fetchRequest setEntity:entity];\r\n    \r\n    NSError *error = nil;\r\n    NSArray *fetchedObjects = [context \r\nexecuteFetchRequest:fetchRequest error:&error];\r\n    if (fetchedObjects == nil) {\r\n        \/\/ Handle the error\r\n        NSLog(@\"Error: No fetched objects.\");\r\n        return NO;\r\n    }\r\n    \r\n    \/\/ Take first product name\r\n    FLCatRanking *flCatRanking = [fetchedObjects objectAtIndex:0];\r\n    NSLog(@\"First fetched item: %@\", flCatRanking.prodID);\r\n    return YES;\r\n}\r\n<\/pre>\n<p>\u0417\u0430\u043f\u0440\u043e\u0441 \u0441 \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0435\u0439 &#8211; \u0430\u043d\u0430\u043b\u043e\u0433 WHERE \u0432 SQL : <\/p>\n<pre lang=\"ObjC\">\r\n+ (NSMutableDictionary*) retrieveProductsForCategory:\r\n(NSString*) catName {\r\n    \r\n    NSMutableDictionary *dic = [[NSMutableDictionary alloc] init];\r\n    \r\n    useDelegate\r\n    NSManagedObjectContext *context = appDelegate.managedObjectContext;\r\n    if (context == nil) {\r\n        NSLog(@\"Error: No context\");\r\n        return nil;\r\n    }\r\n    \r\n    NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] init];\r\n    NSPredicate *predicate = [NSPredicate \r\npredicateWithFormat:@\"prodCatName == %@\", catName];\r\n    NSEntityDescription *entity = [NSEntityDescription \r\nentityForName:@\"FLCatRanking\" inManagedObjectContext:context];\r\n    [fetchRequest setEntity:entity];\r\n    [fetchRequest setPredicate:predicate];\r\n    \r\n    NSError *error = nil;\r\n    NSArray *fetchedObjects = [context \r\nexecuteFetchRequest:fetchRequest error:&error];\r\n    if (fetchedObjects == nil) {\r\n        \/\/ Handle the error\r\n        NSLog(@\"Error: No fetched objects.\");\r\n        return nil;\r\n    }\r\n    \r\n    \/\/ Take first product name\r\n    for (FLCatRanking *flCatRanking in fetchedObjects) {\r\n        NSLog(@\"FLCatRanking item: %@ - %@\", flCatRanking.prodID, \r\nflCatRanking.prodPos);\r\n        [dic addEntriesFromDictionary:[NSDictionary \r\ndictionaryWithObject:flCatRanking.prodID \r\nforKey:flCatRanking.prodPos]];\r\n    }\r\n    \r\n    return dic; \r\n}\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Core Data &#8211; \u044d\u0442\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u043d\u043e\u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u043e\u0431\u043e\u043b\u043e\u0447\u043a\u0430 \u043d\u0430\u0434 \u0431\u0430\u0437\u043e\u0439 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432 iOS\/Mac OS. \u041f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u043e, \u0441\u0430\u043c\u0430 \u0441\u043b\u0435\u0434\u0438\u0442 \u0437\u0430 Commitment Control, \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u0432\u0435\u0440\u0441\u0438\u044f\u043c\u0438 \u0438 \u0442.\u0434. Persistent Store &#8211; \u044d\u0442\u043e &#8220;\u043d\u0430\u0434\u0435\u0436\u043d\u043e\u0435&#8221; \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u0434\u0430\u043d\u043d\u044b\u0445. (NSPersistenStoreCoordinator). \u0414\u0430\u043d\u043d\u044b\u0435 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0432 applicationDocumentsDirectory\/App.sqlite. \u0413\u0434\u0435 App.sqlite &#8211; \u044d\u0442\u043e \u0431\u0430\u0437\u0430 SQLite \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. Context &#8211; \u044d\u0442\u043e instance \u0431\u0430\u0437\u044b. \u041f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u043e\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u044f\u0442\u0441\u044f [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[38],"class_list":["post-1234","post","type-post","status-publish","format-standard","hentry","category-ios","tag-core-data"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043e CoreData - Denis Kutlubaev<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/blog.alwawee.ru\/?p=1234\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043e CoreData - Denis Kutlubaev\" \/>\n<meta property=\"og:description\" content=\"Core Data &#8211; \u044d\u0442\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u043d\u043e\u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u043e\u0431\u043e\u043b\u043e\u0447\u043a\u0430 \u043d\u0430\u0434 \u0431\u0430\u0437\u043e\u0439 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432 iOS\/Mac OS. \u041f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u043e, \u0441\u0430\u043c\u0430 \u0441\u043b\u0435\u0434\u0438\u0442 \u0437\u0430 Commitment Control, \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u0432\u0435\u0440\u0441\u0438\u044f\u043c\u0438 \u0438 \u0442.\u0434. Persistent Store &#8211; \u044d\u0442\u043e &#8220;\u043d\u0430\u0434\u0435\u0436\u043d\u043e\u0435&#8221; \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u0434\u0430\u043d\u043d\u044b\u0445. (NSPersistenStoreCoordinator). \u0414\u0430\u043d\u043d\u044b\u0435 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0432 applicationDocumentsDirectory\/App.sqlite. \u0413\u0434\u0435 App.sqlite &#8211; \u044d\u0442\u043e \u0431\u0430\u0437\u0430 SQLite \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. Context &#8211; \u044d\u0442\u043e instance \u0431\u0430\u0437\u044b. \u041f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u043e\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u044f\u0442\u0441\u044f [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blog.alwawee.ru\/?p=1234\" \/>\n<meta property=\"og:site_name\" content=\"Denis Kutlubaev\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/alwaweemobile\" \/>\n<meta property=\"article:published_time\" content=\"2012-03-28T11:58:01+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2012-03-28T12:10:05+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/blog.alwawee.com\/?attachment_id=1982\" \/>\n<meta name=\"author\" content=\"Denis Kutlubaev\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Denis Kutlubaev\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/blog.alwawee.ru\\\/?p=1234#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/blog.alwawee.ru\\\/?p=1234\"},\"author\":{\"name\":\"Denis Kutlubaev\",\"@id\":\"https:\\\/\\\/blog.alwawee.ru\\\/#\\\/schema\\\/person\\\/58f1f1f57155b48afab83ba53b3e26a7\"},\"headline\":\"\u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043e CoreData\",\"datePublished\":\"2012-03-28T11:58:01+00:00\",\"dateModified\":\"2012-03-28T12:10:05+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/blog.alwawee.ru\\\/?p=1234\"},\"wordCount\":142,\"commentCount\":0,\"keywords\":[\"Core Data\"],\"articleSection\":[\"iOS\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/blog.alwawee.ru\\\/?p=1234#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/blog.alwawee.ru\\\/?p=1234\",\"url\":\"https:\\\/\\\/blog.alwawee.ru\\\/?p=1234\",\"name\":\"\u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043e CoreData - Denis Kutlubaev\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/blog.alwawee.ru\\\/#website\"},\"datePublished\":\"2012-03-28T11:58:01+00:00\",\"dateModified\":\"2012-03-28T12:10:05+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/blog.alwawee.ru\\\/#\\\/schema\\\/person\\\/58f1f1f57155b48afab83ba53b3e26a7\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/blog.alwawee.ru\\\/?p=1234#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/blog.alwawee.ru\\\/?p=1234\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/blog.alwawee.ru\\\/?p=1234#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/blog.alwawee.ru\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043e CoreData\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/blog.alwawee.ru\\\/#website\",\"url\":\"https:\\\/\\\/blog.alwawee.ru\\\/\",\"name\":\"Denis Kutlubaev\",\"description\":\"iOS Development\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/blog.alwawee.ru\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/blog.alwawee.ru\\\/#\\\/schema\\\/person\\\/58f1f1f57155b48afab83ba53b3e26a7\",\"name\":\"Denis Kutlubaev\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/346de75d27c818be0aa7fddeada2e50e30cc15b4da6b3b8110c5d766cd2afa34?s=96&d=mm&r=pg\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/346de75d27c818be0aa7fddeada2e50e30cc15b4da6b3b8110c5d766cd2afa34?s=96&d=mm&r=pg\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/346de75d27c818be0aa7fddeada2e50e30cc15b4da6b3b8110c5d766cd2afa34?s=96&d=mm&r=pg\",\"caption\":\"Denis Kutlubaev\"},\"description\":\"iOS Developer, creator of Tornado Browser and many other popular apps\",\"sameAs\":[\"http:\\\/\\\/dennis.alwawee.com\"],\"url\":\"https:\\\/\\\/blog.alwawee.ru\\\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043e CoreData - Denis Kutlubaev","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/blog.alwawee.ru\/?p=1234","og_locale":"en_US","og_type":"article","og_title":"\u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043e CoreData - Denis Kutlubaev","og_description":"Core Data &#8211; \u044d\u0442\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u043d\u043e\u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u043e\u0431\u043e\u043b\u043e\u0447\u043a\u0430 \u043d\u0430\u0434 \u0431\u0430\u0437\u043e\u0439 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432 iOS\/Mac OS. \u041f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u043e, \u0441\u0430\u043c\u0430 \u0441\u043b\u0435\u0434\u0438\u0442 \u0437\u0430 Commitment Control, \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u0432\u0435\u0440\u0441\u0438\u044f\u043c\u0438 \u0438 \u0442.\u0434. Persistent Store &#8211; \u044d\u0442\u043e &#8220;\u043d\u0430\u0434\u0435\u0436\u043d\u043e\u0435&#8221; \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u0434\u0430\u043d\u043d\u044b\u0445. (NSPersistenStoreCoordinator). \u0414\u0430\u043d\u043d\u044b\u0435 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0432 applicationDocumentsDirectory\/App.sqlite. \u0413\u0434\u0435 App.sqlite &#8211; \u044d\u0442\u043e \u0431\u0430\u0437\u0430 SQLite \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. Context &#8211; \u044d\u0442\u043e instance \u0431\u0430\u0437\u044b. \u041f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u043e\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u044f\u0442\u0441\u044f [&hellip;]","og_url":"https:\/\/blog.alwawee.ru\/?p=1234","og_site_name":"Denis Kutlubaev","article_publisher":"https:\/\/www.facebook.com\/alwaweemobile","article_published_time":"2012-03-28T11:58:01+00:00","article_modified_time":"2012-03-28T12:10:05+00:00","og_image":[{"url":"http:\/\/blog.alwawee.com\/?attachment_id=1982","type":"","width":"","height":""}],"author":"Denis Kutlubaev","twitter_misc":{"Written by":"Denis Kutlubaev","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/blog.alwawee.ru\/?p=1234#article","isPartOf":{"@id":"https:\/\/blog.alwawee.ru\/?p=1234"},"author":{"name":"Denis Kutlubaev","@id":"https:\/\/blog.alwawee.ru\/#\/schema\/person\/58f1f1f57155b48afab83ba53b3e26a7"},"headline":"\u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043e CoreData","datePublished":"2012-03-28T11:58:01+00:00","dateModified":"2012-03-28T12:10:05+00:00","mainEntityOfPage":{"@id":"https:\/\/blog.alwawee.ru\/?p=1234"},"wordCount":142,"commentCount":0,"keywords":["Core Data"],"articleSection":["iOS"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/blog.alwawee.ru\/?p=1234#respond"]}]},{"@type":"WebPage","@id":"https:\/\/blog.alwawee.ru\/?p=1234","url":"https:\/\/blog.alwawee.ru\/?p=1234","name":"\u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043e CoreData - Denis Kutlubaev","isPartOf":{"@id":"https:\/\/blog.alwawee.ru\/#website"},"datePublished":"2012-03-28T11:58:01+00:00","dateModified":"2012-03-28T12:10:05+00:00","author":{"@id":"https:\/\/blog.alwawee.ru\/#\/schema\/person\/58f1f1f57155b48afab83ba53b3e26a7"},"breadcrumb":{"@id":"https:\/\/blog.alwawee.ru\/?p=1234#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.alwawee.ru\/?p=1234"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/blog.alwawee.ru\/?p=1234#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/blog.alwawee.ru\/"},{"@type":"ListItem","position":2,"name":"\u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043e CoreData"}]},{"@type":"WebSite","@id":"https:\/\/blog.alwawee.ru\/#website","url":"https:\/\/blog.alwawee.ru\/","name":"Denis Kutlubaev","description":"iOS Development","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blog.alwawee.ru\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/blog.alwawee.ru\/#\/schema\/person\/58f1f1f57155b48afab83ba53b3e26a7","name":"Denis Kutlubaev","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/346de75d27c818be0aa7fddeada2e50e30cc15b4da6b3b8110c5d766cd2afa34?s=96&d=mm&r=pg","url":"https:\/\/secure.gravatar.com\/avatar\/346de75d27c818be0aa7fddeada2e50e30cc15b4da6b3b8110c5d766cd2afa34?s=96&d=mm&r=pg","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/346de75d27c818be0aa7fddeada2e50e30cc15b4da6b3b8110c5d766cd2afa34?s=96&d=mm&r=pg","caption":"Denis Kutlubaev"},"description":"iOS Developer, creator of Tornado Browser and many other popular apps","sameAs":["http:\/\/dennis.alwawee.com"],"url":"https:\/\/blog.alwawee.ru\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/blog.alwawee.ru\/index.php?rest_route=\/wp\/v2\/posts\/1234","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.alwawee.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.alwawee.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.alwawee.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.alwawee.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1234"}],"version-history":[{"count":0,"href":"https:\/\/blog.alwawee.ru\/index.php?rest_route=\/wp\/v2\/posts\/1234\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.alwawee.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1234"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.alwawee.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1234"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.alwawee.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1234"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}