If you need the standard pattern for that in Obj-C, I have it lying around here somewhere.