Monthly Archives: July 2010

Chapter 17: Outlets, Targets and Actions

It’s been a while, so I decided it’s time to take a look at Cocoa Design Patterns again. Chapter 17, Outlets, Targets and Actions, covers how Cocoa sets up user interfaces, the heart of the Model-View-Controller pattern. If you’re like … Continue reading

Posted in MVC | Tagged | Leave a comment

Setting Up Syntax Coloring Preferences

You may not like the default colors, and different users prefer different colors, so it’s a good idea to let the users select their own colors and have them stored in user preferences. UKSyntaxColoredTextDocument makes that possible with UKSCTDColorWellPrefsController and … Continue reading

Posted in Syntax Coloring | Leave a comment

Changing Syntax Coloring to Objective-C

Update: added changes to UKSyntaxColoredTextViewController implementation. Changing your editor to syntax color Objective-C is done with some fairly simple changes and additions to your MyDocument class, plus a few to UKSyntaxColoredTextViewController. In MyDocument.m you need to change the syntaxDefinitionFilename method … Continue reading

Posted in Syntax Coloring | Leave a comment

Syntax Coloring for Document-Based Applications

Uli Kusterer’s UKSyntaxColoredTextDocument does syntax coloring as you type for HTML, Objective-C and CSS files, and it can be extended to handle other languages by adding appropriate property list files. Using it effectively took some effort, so I hope this … Continue reading

Posted in Syntax Coloring | Leave a comment

Chapter 5: Versioning and Migration

New versions of a program often add new elements to the data model, and how to handle reading files from the old version and upgrading them to the new version is vital for users of the old version. It may … Continue reading

Posted in Core Data | Leave a comment

Chapter 4, part two

The rest of the chapter covers fetch requests, sort descriptors and the managed object context. Section 4.2: NSFetchRequest An NSFetchRequest loads managed objects from the persistent store, putting them into an NSArray for your software to examine or manipulate. Now … Continue reading

Posted in Core Data | Leave a comment