I missed this before, but that’s actually recommended way of doing initializers. You’ll see it in other [non-singleton] parts of the code. See http://www.mikeash.com/pyblog/the-how-and-why-of-cocoa-initializers.html for more info.

-b

From: wil stuckey wil stuckey
Reply: bgreenlee/JobTracker reply@reply.github.com
Date: October 31, 2013 at 8:08:11 AM
To: bgreenlee/JobTracker jobtracker@noreply.github.com
Subject:  Re: [JobTracker] Adding “Open in JobTracker” service (#7)  
In JobTracker/JTStatusMenu.m:

> @@ -45,6 +45,13 @@ - (void)awakeFromNib {
>      }
>  }
>   
> +- (id)init {
> +    if ((self = [super init])) {
> +        [self loadPreferences];
> +    }
I just now realized i grabbed this init from a singleton probably doesn't need this logic in here.

—
Reply to this email directly or view it on GitHub.