Episode 11 - Advanced Bindings and Core Data
Posted 01/07/2007 - 21:32 by cocoacast
We finally feel strong enough to deviate from the Textbook and cover more advanced topics. We introduced two advanced topics in this Episode -- Advanced Bindings with multiple Array Controllers and Core Data. We showed how to create an application with multiple windows (a window and drawer) and connect multiple NSArrayControllers. Finally, RaiseMan application is replicated with Core Data and zero lines of code.
Here are the show notes for this Episode: Show Notes
View the Podcast
Show Notes:
Advanced Bindings and Core Data
Episode 11
Advanced uses of Bindings and Introduction to Core Data
Advanced Topics
Advanced Bindings and Core Data
Episode 11
Advanced uses of Bindings and Introduction to Core Data
Advanced Topics
Podcast Announcements
• Mac World 2007 Speculations
• Starting to Cover More Topics
• Your Questions
Podcast Announcements
• Mac World 2007 Speculations
• Starting to Cover More Topics
• Your Questions
Recap of the Last Episode
Summary of the Episode 10
Recap of the Last Episode
Summary of the Episode 10
Summary of Episode 10
• Finished Chapter 6
• KVC and nil
• Sorting
• Sorting Without NSArrayController
• Key Path
• Challenges and Solutions
Summary of Episode 10
• Finished Chapter 6
• KVC and nil
• Sorting
• Sorting Without NSArrayController
• Key Path
• Challenges and Solutions
In this Episode
• Advanced Cocoa Bindings
• RaiseMan without Bindings - Challenge 2 from Chapter 6
• Advanced RaiseMan
• RaiseMan with Core Data
+
In this Episode
• Advanced Cocoa Bindings
• RaiseMan without Bindings - Challenge 2 from Chapter 6
• Advanced RaiseMan
• RaiseMan with Core Data
+
Demo
RaiseMan Without Bindings
Demo
RaiseMan Without Bindings
Demo
RaiseMan Advanced (Special Thanks to Todd Ignasiak for Suggesting this Exercise and
providing his sample solution -- see it at http://cocoa101.googlepages.com/ )
Demo
RaiseMan Advanced (Special Thanks to Todd Ignasiak for Suggesting this Exercise and
providing his sample solution -- see it at http://cocoa101.googlepages.com/ )
Core Data
Overview
Core Data
Overview
• Enterprise Objects Framework by NeXT
• Database Abstraction Layer
• First Product that used Foundation Kit (v.2.0)
• Apple dropped EOF in 2000 as standalone product, but it remained in
WebObjects
• Reintroduced for Application Development in April of 2005
as part of MacOS X 10.4 Tiger
Core Data History
• Enterprise Objects Framework by NeXT
• Database Abstraction Layer
• First Product that used Foundation Kit (v.2.0)
• Apple dropped EOF in 2000 as standalone product, but it remained in
WebObjects
• Reintroduced for Application Development in April of 2005
as part of MacOS X 10.4 Tiger
Core Data History
• It is Not a Database
• Rather, it is an infrastructure for saving objects
and retrieving them from persistent storage
• Does not rely on Cocoa Bindings
• Rather, it does integrate with bindings and it
leverages its technology
What Core Data is not:
Object Management
Core Data with MVC
• Design our Model
• Implement Relationships
• Implement Management
Managed Object Context
RaiseMan with Core Data
Demo
RaiseMan with Core Data
Demo
Summary
• Advanced Cocoa Bindings
• RaiseMan without Bindings - Challenge 2 from Chapter 6
• Expanded RaiseMan
• Other Bindings-related topics
Summary
• Advanced Cocoa Bindings
• RaiseMan without Bindings - Challenge 2 from Chapter 6
• Expanded RaiseMan
• Other Bindings-related topics
Next Time
• Adding Undo to Your Applications
• NSInvocation
• NSUndoManager
• RaiseMan with the Undo
• Key-Value Observing (KVO)
• Undo for Edits
• Windows and the UndoManager
Next Time
• Adding Undo to Your Applications
• NSInvocation
• NSUndoManager
• RaiseMan with the Undo
• Key-Value Observing (KVO)
• Undo for Edits
• Windows and the UndoManager
The Best Code is the Code...
you do not have to Write
The Best Code is the Code...
you do not have to Write





Advanced Bindings with multiple Array Controllers and Core Data. We showed how to create an application with multiple windows (a window and drawer) and connect multiple NSArrayControllers.presentation skills training
FYI: After I alt-dragged a core data entity into IB, nothing I added afterwords compiled (or showed up in the app). To fix this I went to Build > Clean All Targets in XCode.