Amazon.com Widgets

shanecrawford.org Home Grown in Austin

Posts Tagged Development

CoreData’s default date value

CoreData is a powerful system available to Cocoa developers. Yet, with all of its inherent power somewhat mundane tasks still need a bit of customization love. Amoung these items are default values for managed object attributes. In particular, the default value for date type attributes usually need some customization.
Within the core data modeler the default [...]


A Warning about your inverse relationships

When working on a data model it is common to run into a situation where one data entity knows about another but not the other way around. Usually you can make the argument that both objects should know about each other. However, for one reason or another, which usually comes down to some underlying implementation [...]


Creating an Action PopUp Button in Leopard

It seems that everywhere you look in OS X you see applications with popup action buttons. You know, that button with a gear on it. Click it and a menu full of goodies pops up for you to play with. Apple itself uses it pretty extensively in its apps; Mail and Finder are [...]


Sorting a CoreData backed NSArrayController

NSArrayController is an incredible way to provide data to many of Cocoa’s UI controls. Typically, it manages an array of data objects which can be sorted, filtered, selected, and basically served up to the UI control for display. Pair this flexibility with the power of CoreData and you have a powerful dynamic.
However, this flexibility [...]


Generational Garbage

One of the strategies used by modern garbage collectors (GC) to collect memory is the usage of generations. There are a couple of key observations about objects that are capitalized on in order to make the GC more efficient through this strategy.
Exploiting Key Observations
First, the life of most objects tends to be short [...]


← Before After →