iPhreaks

The iPhreaks Show is a weekly group discussion about iOS development and related technology by development veterans. We discuss Apple, tools, practices, and code.

Subscribe

Get episodes automatically

192

192 iPS Core Data


192 iPS Core Data

On today's episode, Andrew and Jaim discuss Core Data. Core Data is now easy to use as a result of the recent changes in Xcode 8 and iOS 10. Learn what it is and understand how you can get the most out of it.

What is Core Data?

Core Data was released along with macOS 10.4 in 2005. It is Apple's framework for doing local persistence.

With it, you can track changes, save disks, manage relationships, and undo and redo stack. You can easily manage object relationships without having to write code manually.

Core Data vs. SQL

Unlike SQL, Core Data can turn database into objects. It can also maintain relationships between the objects. As programmer, you deal with different objects and properties. Core Data keeps the relationships valid.

Appropriate Use

Core Data is more efficient in large data sets. You can use it if you're finding it difficult to manage object relationships.

It has a free built-in support for undo and redo. You can undo something without a code. You just need to hook it in the system.

To hear about Core Data, download and listen to the entire episode. Feel free to leave us any comments and suggestions. We love hearing from you!

If you’re short on time, here are the highlights of Core Data:

  • What is Core Data? (1:00)
  • Difference between SQL and Core Data? (4:38)
  • How to determine whether it's appropriate to use? (6:12)
  • Core Data stack? (15:26)
  • Creating different threads? (18:13)
  • Convenience methods? (25:16)
  • Query generation feature? (30:20)

Picks:

Andrew: Sophistication and Simplicity by Steven Weyhrich, recent interview with John Romero

Jaim: Linum app

This episode is sponsored by

comments powered by Disqus
x