Challenge: Sorting Names by Length

Make the application sort people based on the number of characters in their names. You can complete this challenge using only Interface Builder – the trick is to use a key path. (Hint: Strings have a length method.)

Get Cocoa Programming for OS X: The Big Nerd Ranch Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.