# Core

## CoreData

Служит для описания сущностей, связей и тд. Используются для описания хранимых данных.

Работа с CoreData в swift\
[https://github.com/jessesquires/talks/blob/master/2015/04-14%20Using%20Core%20Data%20in%20Swift/using\_core\_data\_in\_swift.md](https://github.com/jessesquires/talks/blob/master/2015/04-14%20Using%20Core%20Data%20in%20Swift/using_core_data_in_swift.md)\
[http://macbug.ru/cocoa/coredataupstorage](http://macbug.ru/cocoa/coredataupstorage)

Еще статья про CoreData: [https://habr.com/ru/post/436510/](https://habr.com/ru/post/436510/)

Выглядят они примерно так: \*xcdatamodeld/\*.xcdatamodel/contents

![](https://2100114679-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Ls6nEJ632aL96Mci8nj%2F-M8kuHOGhxDY5Vspm8PJ%2F-M8kwAbc7lwsoxSrlGS8%2F%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA%20%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0%202020-06-01%20%D0%B2%2020.31.34.png?alt=media\&token=57aea6a9-dcb8-4e78-bb12-d4d5d5229a0f)

Затем, можно по названию сущности, создавать объекты.



NSPersistentStore\
[https://forum.swiftbook.ru/t/nspersistentstore-swift-4-0-chast-2/4581](https://forum.swiftbook.ru/t/nspersistentstore-swift-4-0-chast-2/4581)\
[https://developer.apple.com/documentation/coredata/nspersistentstore?language=objc](https://developer.apple.com/documentation/coredata/nspersistentstore?language=objc)\
[https://developer.apple.com/documentation/coredata/nspersistentstorecoordinator/1468860-addpersistentstorewithtype?language=objc](https://developer.apple.com/documentation/coredata/nspersistentstorecoordinator/1468860-addpersistentstorewithtype?language=objc)

NSFetchRequest\
[https://habr.com/ru/company/livetyping/blog/309624/](https://habr.com/ru/company/livetyping/blog/309624/)

NSPredicate\
[https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/Predicates/Articles/pCreating.html](https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/Predicates/Articles/pCreating.html)

CFNetwork - Core Foundation для сетевого взаимодействия
