Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint

18.4. Summary

Object serialization in Objective-C is easy to use and powerful. You can use it for saving your application state to disk or you can use it to send data over a network connection to another process. In this chapter I've shown you how to make your objects compatible with the NSCoding protocol, and also how to read and write your object graphs to disk using the NSKeyedArchiver and NSKeyedUnarchiver classes. Together, these will give you the tools needed to leverage serialization in Objective-C.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial