Adam,
While I was studying storyboards, I pretty much did it the same way you did, except that I made each of my view controllers for which the MOC property was protocol-compatible.
There is nothing substantial, so I will move on.
I believe this is a storyboard, IMO, half baked. Based on the .Net background, it is obvious that there is no infrastructure for the object builder in combination with the IoC container. When Apple adds, Storyboards will be awesome. When the storyboard frame can look at the destinationViewController, determining its dependencies and solving the problem of the container’s life will be great. For now, all he really can do is look at the destinationViewController and initialize a generic option that has limited use.
Unfortunately, due to the fact that this is a semi-whitened solution, which I follow the traditional approach at the moment, that’s why all my view controllers are alloc'd and init'd manually, and more importantly, I added a method to each view controller initWithMOC: (MOC *) moc;
The architect in me tells me that this code is more reliable, I think it is a matter of opinion on whether a compromise is worth it.
Has anyone come up with a better way?
CA.
source share