{"push_id":1363670591,"size":1,"distinct_size":1,"ref":"refs/heads/explicating","head":"1430bfb288b515ae7bcdb74925c1e1bab4046bf8","before":"f57a0d3911b3c8a851f81930f0bcdf77f54652ef","commits":[{"sha":"1430bfb288b515ae7bcdb74925c1e1bab4046bf8","author":{"name":"Marty Avedon","email":"ef84cfb664906ae9484a7333677e5370c4663438@C4Qs-MacBook-Pro-72.local"},"message":"ok, so singletons. singletons have inits that are private. if we remove the designation 'private' from our factory, other instances can create more factories. it will no longer be single. public init =/= singleton. BUT we need to have a public init to get catFactory in our view controller running. If it's private, we can't initialize it and call catFactory in viewDidLoad to make us cats. we can get around this difficulty by putting the remote data method in our view controller and calling self within viewDidLoad to get our catFactory pumping out cats. Unfortunately, this somewhat breaks the MVC pattern, in that we are sticking stuff from the model inside a controller. It's better to get working code than to rigidly adhere to the rules...","distinct":true,"url":"https://api.github.com/repos/martyav/AC3.2-NSURLSession/commits/1430bfb288b515ae7bcdb74925c1e1bab4046bf8"}]}
{"actor":{"display_login":"martyav"}}