Avoiding an Objective-C Pitfall #1

Below is a very commonly used design pattern in Objective-C. It’s the typical Objective-C “Singleton Pattern” because it does just that.  Returns a singleton of the class it belongs to.  If we take a look at an example that uses it we can see it in action. The “@synchronized(self)” statement ensures that only one thread at a […]

%d bloggers like this: