A modest proposal for optional methods in Swift protocols
Aug 18, 2018, 5:39 PM
Swift contains protocols in which you can declare methods, which something claiming to adhere to the protocol must implement. One thing Swift protocols can’t do are optional methods... sort of. In Objective-C we’d specify an optional...
Basic MVVM with ReactiveCocoa
Mar 7, 2013, 5:03 PM
Update: This article has been updated to reflect the changes in the latest stable ReactiveCocoa v2
MVC - One Pattern to Rule them all
The MVC design pattern has existed since the late 1970s and has been in use in the Foundation, AppKit...
Cover up those ivars
Aug 30, 2012, 10:20 PM
It all started with a tweet a couple mornings ago...
There is no longer a need to declare ivars in your Objective-C headers. Stop that bad habit now.
There is no longer a need to declare ivars in your Objective-C headers. Stop that bad...
Clang Source Annotations
Jan 31, 2012, 9:16 PM
Recently I was faced with a dilemma. I was writing code I needed, and then I triggered a Clang Static Analyzer issue. Here is the code a category on NSColor, see if you can figure out whats wrong with it from a Static Analyzer...
Singletons: You're doing them wrong
Apr 7, 2011, 3:55 PM
This post feels a bit odd, as generally I fully agree with Dave Dribin on how wrong singletons are and that you should avoid them if possible. However on Stack Overflow i've seen far too many people write bad code that is horrible for...
Xcode 4 Keyboard Shortcuts now available!
Mar 9, 2011, 7:55 PM
The Xcode 4 Keyboard Shortcuts are now available. I've decided to make forking it and creating your own version easier by putting it up on Github. This will make it easier to browse forks and merge new formats in. Additionally it makes it...
Practical Design Patterns with Blocks and Grand Central Dispatch
Feb 23, 2011, 7:18 PM
IntroductionWhen Mac OS X 10.6 was introduced, the Mac got a very powerful duo of developer tools that made development on a lot easier. With iOS 4.0 developers finally got access to these tools as well. These tools are known as Blocks &...
Objective-C Memory Management & Garbage Collection
Dec 28, 2010, 9:35 PM
This article started out as a presentation I did for the Des Moines Cocoaheads.
IntroductionObjective-C Memory Management is something i've seen new people to Cocoa & Objective-C mess up in ways I could just not conceive of on my own. In...
OmniWeb as a Cocoa Documentation Browser
Nov 17, 2010, 5:02 PM
The built in Xcode Documentation browser is okay, and the stuff Apple does to bring some bits of documentation lookup into the code in IDE is not bad. However, until the full documentation browser is it's own app, I don't think it'll ever...
Sep 5, 2010, 12:37 PM
Mike Ash recently complained about the restrictions on the Cocoa-Dev Mailing list. There are also many things people would like to discuss that Apple just doesn't allow (as part of their policy) on their mailing lists.
So Brent Simmons...
Enumerating Lines Concurrently using a Block
Aug 11, 2010, 1:26 PM
Recently on twitter I asked about enumerating over the lines of a string concurrently using a block. I couldn't see an API to deal with this issue directly. If you look through the Mac OS X 10.6 SDK you'll see this
Good User Interface Design on Mac OS X and the iPhone OS
Jun 9, 2010, 5:09 PM
Good user interface design can make or break your application, it's not just visual appearance but workflow & accessibility. An application that is visually appealing but not well designed will lose out to an application that isn't as...
DM CocoaHeads: Good User Interface Design in Cocoa & Cocoa Touch
Apr 4, 2010, 2:37 PM
Thursday, April 8 at 7 pm at the Impromptu Studio in Des Moines,IA (see link above for Map & directions)
I recently became the group leader of the Des Moines CocoaHeads, and to get the...
The PubSub Framework: Using RSS Feeds in your App
Feb 1, 2010, 7:35 PM
The Project Page for this articles project is on github at http://github.com/Machx/FeedViewer you can grab the source code with git by entering the following command in terminal....
git clone git://github.com/Machx/FeedViewer.git
Understanding the Objective-C Runtime
Jan 20, 2010, 4:53 PM
The Objective-C Runtime is one of the overlooked features of Objective-C initially when people are generally introduced to Cocoa/Objective-C. The reason for this is that while Objective-C (the language) is easy to pick up in only a couple...
Des Moines Cocoaheads 1/14: Understanding the Objective-C Runtime
Jan 10, 2010, 5:12 PM
Where: Impromptu Studios in Downtown Des Moines, IA 300 SW 5th St, Suite 220
When : Thursday, January 14 @ 7pm
I will be doing a talk this Thursday at the Des Moines Cocoaheads on...
Book Review: Cocoa Design Patterns
Oct 12, 2009, 11:26 AM
The Cocoa Design Patterns Book is one I've been anticipating for a while now and the first Cocoa book i've gotten in my hands that I've been really excited to read (i just finally got Bill Dudneys iPhone SDK book and Marcus Zarra's Core...
New in Snow Leopard: New Mac OS X DTrace Providers
Sep 30, 2009, 9:29 PM
If you used Leopard and DTrace, then came to Snow Leopard there is a big treat for you (if you haven't used DTrace you can read my previous article Debugging Cocoa With DTrace Guide, go on read it and come back here... I'll wait), on...
Xcode Shortcut Documents available under CC
Sep 21, 2009, 9:54 AM
Today I am releasing the original pages documents for the Xcode Shortcuts under the Creative Commons 3.0 Attribution License. Basically you can do with it, whatever you want as long as I am attributed as being the original author...
Making NSOperation look like GCD
Sep 17, 2009, 10:18 AM
For my last article I posted, I realized that when coming up with code examples that I had been writing examples with NSOperation using it the same way I had been writing code with NSOperation before, namely creating a NSOperation object...
A Guide to Blocks & Grand Central Dispatch (and the Cocoa API's making use of them)
Sep 16, 2009, 4:07 PM
As you may or may not know I recently did a talk at the Des Moines Cocoaheads in which I reviewed Blocks and Grand Central Dispatch. I have tried to capture the content of that talk and a lot more here in this article. The talk...
Des Moines CocoaHeads: Blocks & Grand Central Dispatch (Updated with Room#)
Sep 7, 2009, 4:16 PM
This Thursday I will be doing a presentation at the Des Moines Cocoaheads (at Iowa State University Campus Howe Hall Room 20. It's on the lower level of Howe, just go down the main stairs by the front door and you'll see room 20 straight...
Xcode Shortcuts Updated for Xcode 3.2 on Mac OS X 10.6 Snow Leopard
Aug 28, 2009, 10:39 AM
Xcode Shortcuts (PDF)
Xcode Shortcuts (Black & White) (PDF)
Update The original Pages Documents used to make this are now freely available under the Creative Commons License, see more info here
I've gone ahead and updated the Xcode...
See you at WWDC!
Jun 6, 2009, 12:32 PM
I am taking just a few minutes to write this in the middle of packing my things for WWDC. This will be my 3rd time going to WWDC and my last time officially as a student.
Already I have learned a great deal of things from the previous...
Distributed Version Control & Git [Part 2]
Apr 18, 2009, 11:34 PM
In Part I of Distributed Version Control & Git, I showed you why you should switch to Distributed Version Control and explained part of what makes Git a compelling Distributed Version Control System.
In Part 2 and the final part of this...