-
Notifications
You must be signed in to change notification settings - Fork 268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Let Typhoon use manually created objects while using blocks #12
Comments
This would be quite easy to implement. . points of interest:
To implement, put the manually created object into the _singleton registry. . The rest should all come out in the wash. |
Jeff Roberts is interested in working with you on this. |
Jose and Jeff -> I've granted push access (available to anyone who's first name starts with 'J' ;) ). . . Please do one of the following:
|
This has been completed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've done the exercise of building a Core Data Stack using Typhoon and block style definitions. I found it extremely verbose, and I think the main reason is that Typhoon doesn't let you inject or use manually created objects. I understand this is due to the fact that you can't manually create objects in XML, but I don't see any reason why this also should be the case while using blocks.
Here you have the complete code: https://gist.github.com/jgongo/5075937
As you can see, there are four Typhoon definitions just to emulate the following snippet:
Also notice the use of hard coded constants in applicationDocumentsDirectories
I think this could be simplified a lot if:
The text was updated successfully, but these errors were encountered: