Transcript
![Page 1: Figure 22.1 Create a new project.ptgmedia.pearsoncmg.com/images/9780672335778/downloads/... · 2012. 4. 26. · testdoc Use Core Data Use Automatic Reference Counting Include Unit](https://reader034.vdocuments.net/reader034/viewer/2022052019/6032a9c2e3ef8d16734b2262/html5/thumbnails/1.jpg)
Figure 22.1Create a new project.
![Page 2: Figure 22.1 Create a new project.ptgmedia.pearsoncmg.com/images/9780672335778/downloads/... · 2012. 4. 26. · testdoc Use Core Data Use Automatic Reference Counting Include Unit](https://reader034.vdocuments.net/reader034/viewer/2022052019/6032a9c2e3ef8d16734b2262/html5/thumbnails/2.jpg)
Figure 22.2Create the Core Data model.
![Page 3: Figure 22.1 Create a new project.ptgmedia.pearsoncmg.com/images/9780672335778/downloads/... · 2012. 4. 26. · testdoc Use Core Data Use Automatic Reference Counting Include Unit](https://reader034.vdocuments.net/reader034/viewer/2022052019/6032a9c2e3ef8d16734b2262/html5/thumbnails/3.jpg)
Figure 22.3Make sure an attribute is not optional and has no default value.
![Page 4: Figure 22.1 Create a new project.ptgmedia.pearsoncmg.com/images/9780672335778/downloads/... · 2012. 4. 26. · testdoc Use Core Data Use Automatic Reference Counting Include Unit](https://reader034.vdocuments.net/reader034/viewer/2022052019/6032a9c2e3ef8d16734b2262/html5/thumbnails/4.jpg)
Figure 22.4Add an object controller and label it Customer.
![Page 5: Figure 22.1 Create a new project.ptgmedia.pearsoncmg.com/images/9780672335778/downloads/... · 2012. 4. 26. · testdoc Use Core Data Use Automatic Reference Counting Include Unit](https://reader034.vdocuments.net/reader034/viewer/2022052019/6032a9c2e3ef8d16734b2262/html5/thumbnails/5.jpg)
Figure 22.5Bind the Customer object controller to managed Object Context in File’s Owner.
![Page 6: Figure 22.1 Create a new project.ptgmedia.pearsoncmg.com/images/9780672335778/downloads/... · 2012. 4. 26. · testdoc Use Core Data Use Automatic Reference Counting Include Unit](https://reader034.vdocuments.net/reader034/viewer/2022052019/6032a9c2e3ef8d16734b2262/html5/thumbnails/6.jpg)
Figure 22.6Finish the bindings between the managed object context and the text fields.
![Page 7: Figure 22.1 Create a new project.ptgmedia.pearsoncmg.com/images/9780672335778/downloads/... · 2012. 4. 26. · testdoc Use Core Data Use Automatic Reference Counting Include Unit](https://reader034.vdocuments.net/reader034/viewer/2022052019/6032a9c2e3ef8d16734b2262/html5/thumbnails/7.jpg)
Figure 22.7Core Data catches the error.
![Page 8: Figure 22.1 Create a new project.ptgmedia.pearsoncmg.com/images/9780672335778/downloads/... · 2012. 4. 26. · testdoc Use Core Data Use Automatic Reference Counting Include Unit](https://reader034.vdocuments.net/reader034/viewer/2022052019/6032a9c2e3ef8d16734b2262/html5/thumbnails/8.jpg)
Figure 22.8Core Data can catch multiple errors.