February 2011
2 posts
1 tag
How I do my singletons
This is something that comes up again and again.  How do you make a true singleton in Objective-C? I was just asked this the other night, so I decided to write up my version of an Objective-C singleton. For starters, there’s an example in the documentation on how you could make a singleton. It’s a pretty bizarre implementation. StackOverflow.com has a nice long discussion on what...
Feb 24th
29 notes
heapify asked: Why do Strings in Objective-C have to be preceded with an @?
Feb 24th
10 notes