youngfan007 发表于 2016-1-1 06:48:28

Basic Core Data(Chapter 11 of Cocoa Programming for Mac OS X)

  Apple decided to make this type ofapplication extremely easy to write:


[*]   NSArrayController will hold on to an array of objects.
[*]   Bindings will eliminate much ofthe glue code that would be necessary to keep the model objects in sync with theviews.
[*]   NSManagedObjectContext will observe the instance variables of your dataobjects, take care of undo for you, and take care of loading and saving thedata.
  So, the punchline is: Using Core Dataand bindings, the RaiseMan application that you have written can be created withno code at all. In this section, you are going to write a simple Core Dataapplication (not unlike RaiseMan) that has no code.
页: [1]
查看完整版本: Basic Core Data(Chapter 11 of Cocoa Programming for Mac OS X)