Dot Notation in Objective-C

I’m going to jump right into this contentious issue. There has been a lot written about using dot notation in Objective-C. Before we get into the arguments, let me first show you something from some actual code I’m working on right now: “Normal” bracket notation Objective-C: [fetchRequest setSortDescriptors:[NSArray arrayWithObject:sort]]; Dot notation Objective-C 2.0: fetchRequest.sortDescriptors = … Continue reading Dot Notation in Objective-C

A better UIPickerView

Working on a new/old project. Thought I would wrap my UIPickerView customizations into a self-contained class. Here it is. I’ve improved UIPickerView by adding in presentation and interaction functionality that it should frankly have had from the beginning. Here’s what it does: 1.) Added a (void)show and (void)hide method. This makes the pickerView pop up … Continue reading A better UIPickerView