On 7 Jun 2013, at 09:26, "David Chisnall" <david.chisn...@cl.cam.ac.uk> wrote:
> My preferred pattern is: > > + (void)initialize > { > [[self alloc] init]; > } Should this be wrapped in if(self == [Singleton class])? I've seen that used to guard against this +initialize being called multiple times when a subclass is used that doesn't override the method. Thanks, Graham. _______________________________________________ Gnustep-dev mailing list Gnustep-dev@gnu.org https://lists.gnu.org/mailman/listinfo/gnustep-dev