On 7 Jun 2013, at 09:26, "David Chisnall" <[email protected]> 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
[email protected]
https://lists.gnu.org/mailman/listinfo/gnustep-dev