13.07.2015 Views

Beginning Objective-C pdf - EBook Free Download

Beginning Objective-C pdf - EBook Free Download

Beginning Objective-C pdf - EBook Free Download

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 9Writing an ApplicationIt’s taken a long time to get here, but now you’re going to put everything we’ve taught you so farinto use in a real, tangible application. The app itself will build on the foundation created in theprevious chapter and will add a number of new features, such as:• Synchronization of data across users’ devices using Core Data’s iCloudintegration.• Sandboxing because all Mac App Store apps need to be sandboxed. Soyou’ll enable that while still keeping access to the things you need, likeiCloud and the system Address Book.• A network service to browse and vend data from instances of thisapplication, all encapsulated in a properly sandboxed XPC service for bettersecurity.The finished project is available online at this book’s web site 1 and on my personal GitHub site, 2where any future updates will be made. In the course of this chapter you will be guided throughthe details of implementing each of the above steps and taught the reasoning behind some ofthe decisions made during that implementation.Enabling iCloud 3The first and easiest step is to enable the use of entitlements for your application and to supplyunique identifiers for the iCloud key-value store and ubiquity containers. To do this, selectthe project file in the Project Navigator and then select the application target in the project1www.apress.com/97814302436872http://github.com/AlanQuatermain/<strong>Beginning</strong>-ObjC-Project3Note that you need to be a Mac Developer Program member to be able to support iCloud in yourapplication. If you aren’t one, simply skip the iCloud-specific steps in this chapter.269www.it-ebooks.info

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!