Xcode 8: Core Data Class Generation

March 1st, 2017

Filed under: Xcode | Be the first to comment!

Xcode 8 adds support for automatically creating classes for your Core Data entities. If you look at Xcode’s data model inspector, you will see a Codegen menu. The Codegen menu has the following items: Manual/None, which means Xcode does not generate code files for the entity. This is the same behavior that previous versions of […]


Maintaining NSTextView Insertion Point After Core Data Save

November 21st, 2016

Filed under: Cocoa, Mac Development | 1 comment

I am working on a Mac journaling application that uses Core Data. The user interface consists of a table view and a text view. The table view contains a list of dates. Selecting a date fills the text view with what was written on that date. Use the text view to write. One problem I […]


Sorting a Table View of Core Data Records

October 8th, 2014

Filed under: Cocoa, Mac Development | 1 comment

In my previous post, I detailed the steps needed to bind a view-based table view to a Core Data entity. That post is missing one thing: sorting, which I’m going to cover now. Add an Ordering Attribute to the Entity Core Data does not have built-in support for sorting records. If you want a collection […]


Binding a View-Based Table View to a Core Data Entity

October 7th, 2014

Filed under: Cocoa, Mac Development | 3 comments

My main reason for writing this post is to have a reference for myself in case I need to bind a view-based table in the future. If this post helps anyone else, that’s a bonus. Set up the Array Controller The first step is to create an array controller and configure it to control a […]


Value Expressions: Where to Find Documentation

May 3rd, 2010

Filed under: Cocoa, Mac Development | Be the first to comment!

When you open a mapping model in a Core Data project, you’ll see that attributes and relationships have a value expression, and you have the option to change the value expression. For attributes the value expression is usually simple. $source.AttributeName I wanted to see what kinds of values you could give a value expression. I […]