You are currently looking at an older section of the wincent.dev website.
Please check the new version of the site at https://wincent.dev/ for updated content.

wincent knowledge base

February 13, 2006

Unit testing guidelines

Lately I've been spending a lot of time working on my unit testing framework, WOTest. In doing so I've had cause to think about unit testing "best practice", or at least what works best for me.

Read full article

Posted by wincent at 02:38 AM

January 26, 2006

Locking, double-checked locking and speed

When you're doing multi-threaded programming it's often necessary to use locking to ensure that resources aren't being used in conflicting ways by different threads.

Read full article

Posted by wincent at 05:08 PM

Objective-C enumeration macro

Three ways to improve upon the standard Objective-C enumeration idiom.

Read full article

Posted by wincent at 04:50 PM

July 16, 2005

Building Universal Binaries

If you want to build a Universal Binary that runs on both Panther (PowerPC) and Tiger (PowerPC and Intel) then you'll have to make a couple of custom build settings. From reading the xcode-users mailing list and revising the Apple release notes and documentation a couple things have become clear to me.

Read full article

Posted by wincent at 09:59 AM

December 14, 2004

Messaging nil

Be sure when you message to nil that the selector you're using returns an object.

Read full article

Posted by wincent at 09:34 PM

November 11, 2004

Localization on Mac OS X

Guidelines for localizing Wincent software on Mac OS X.

Read full article

Posted by wincent at 02:08 AM