Core Data: Data Storage and Management for iOS, OS X, and iCloud (Pragmatic Programmers)

Core info is Apple's prompt option to persist facts: it is easy to exploit, integrated, and built-in with iCloud. it is elaborate, robust, and necessary--and this ebook is your consultant to harnessing its power.

study basic center information rules reminiscent of thread and reminiscence administration, realize how you can use center info on your iPhone, iPad, and OS X tasks through the use of NSPredicate to clear out information, and spot tips to upload iCloud for your applications.

Cocoa professional Marcus Zarra walks you thru constructing a full-featured program established round the center facts APIs. you are going to building up a unmarried software in the course of the e-book, studying key center information ideas akin to NSPredicate, thread administration, and reminiscence management.

aimed at intermediate to complicated builders, this booklet will get you ok with the fundamentals of middle info. Then you will delve deep into the main points of the API. you will discover not just find out how to get center information built-in into your software thoroughly, yet even larger, tips on how to paintings with the API's flexibility to create comfort how you can enhance your application's maintainability. how to decrease your variety of mapping versions, combine your center facts app with highlight and speedy glance, attach your program with sync providers, and the way to use center information in a multithreaded atmosphere. by means of the top of the booklet, you will have equipped a full-featured software, received a whole realizing of middle facts, and realized how you can combine your program into the iPhone/iPad platform.

This moment version updates all examples for OS X Mountain Lion and iOS 6, will get you in control on adjustments in multithreading, and gives new chapters masking iCloud and NSFetchedResultsController.

What You Need Mac OS X Mountain Lion and iOS 6. This publication is for intermediate-level iOS developers.

Show description

Preview of Core Data: Data Storage and Management for iOS, OS X, and iCloud (Pragmatic Programmers) PDF

Similar Development books

Introduction to Programming Using Python plus MyProgrammingLab with Pearson eText -- Access Card

Observe: ahead of buying, consult with your teacher to make sure you choose the right kind ISBN. numerous models of Pearson's MyLab & gaining knowledge of items exist for every identify, and registrations will not be transferable. To check in for and use Pearson's MyLab & gaining knowledge of items, you can also desire a path identity, which your teacher will supply.

Ground Control: Fear and Happiness in the Twenty-First-Century City

While the figures say crime is falling, why are we extra worried than ever? may well our cities and towns be developing worry and distrust? extra estate is being in-built Britain than at any time because the moment global warfare - yet it truly is owned through inner most organizations, designed for revenue and watched over by means of CCTV.

The Dragon's Gift: The Real Story of China in Africa

Is China a rogue donor, as a few media pundits recommend? Or is China aiding the constructing global pave a pathway out of poverty, because the chinese language declare? within the previous few years, China's relief software has leapt out of the shadows. Media stories approximately large relief applications, aid for pariah regimes, regiments of chinese language hard work, and the ruthless exploitation of staff and typical assets in a number of the poorest international locations on the planet sparked fierce debates.

The Coming Prosperity: How Entrepreneurs Are Transforming the Global Economy

Ours is the main dynamic period in human historical past. some great benefits of 4 centuries of technological and organizational switch are finally attaining a formerly excluded international majority. this modification will create large-scale possibilities in richer nations just like the usa simply because it has in poorer international locations now within the ascent.

Extra info for Core Data: Data Storage and Management for iOS, OS X, and iCloud (Pragmatic Programmers)

Show sample text content

It truly is much better to wreck up an software person interface into consumable chunks of data than it really is to attempt to exhibit each final bit at the display immediately. The cautious use of tabs, sheets, and panels can increase the texture of a consumer interface, and that may in flip increase the functionality. by way of splitting the person interface into smaller items, we now have finer-grained regulate over what facts will get loaded while, and we will be able to lessen our disk entry to attainable chunks. preserve it basic. Footnotes [2] See http://en. wikipedia. org/wiki/Database_normalization for info. Copyright © 2013, The Pragmatic Bookshelf. bankruptcy five Threading Multithreading is among the nice double-edged swords of programming. whether it is performed properly, it may be a true boon in your program; performed incorrectly, it results in unusual, unreproducible error within the program. Multithreading tends to polarize builders: they both swear that it's important for any program to accomplish appropriately or claim it truly is to be refrained from in any respect expenses. the reality, after all, is someplace within the center. Multithreading is an important piece of the general functionality puzzle. whereas including extra threads won't make your software immediately swifter, it could possibly make your software “feel” swifter to the consumer. That notion is what we will specialize in during this bankruptcy. the matter is that center facts isn't really inherently thread-safe. It nonetheless wishes and expects to be run in one thread. consequently, once we begin multithreading our functions, we needs to take care to paintings with center info appropriately to prevent threading matters. thankfully, as of iOS 6. zero and OS X 10. eight Mountain Lion, issues have enhanced considerably. middle information and iOS five. zero As pointed out within the advent, we're focusing totally on iOS 6. zero. besides the fact that, during this bankruptcy specifically, the various APIs mentioned have been really brought in iOS five. zero (as good as OS X 10. 7 Lion). regrettably, whereas the APIs have been brought at the moment, they didn’t paintings rather well. in certain cases, they didn’t paintings in any respect. hence, it's my suggestion to regard iOS five. x as though it have been iOS four. x and to prevent utilizing any of the center information APIs that have been brought in five. zero. five. 1 Why Isn’t center info Thread-Safe? you can be stunned to profit that there are various issues in Cocoa and Objective-C that aren't thread-safe, and center info is just one of the various. for example, everytime you make a transformation to a GUI widget, it is strongly recommended you be at the major thread, as the UI isn't really thread-safe. sooner than iOS 6. zero and OS X 10. eight Mountain Lion, you may break out with utilizing middle info incorrectly in a multithreaded setting. in the event you learn from NSManagedObject circumstances simply on threads except the person who created the example and didn’t write to them, then issues might work—usually. although, as of iOS 6. zero and OS X 10. eight Mountain Lion, that has replaced. middle info now screens what thread the items are being accessed from and may throw an exception if an wrong entry is detected. whereas this variation can capture builders off-guard, it's a internet win.

Download PDF sample

Rated 4.12 of 5 – based on 32 votes