-
Notifications
You must be signed in to change notification settings - Fork 269
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jasper Blues
committed
Mar 4, 2013
1 parent
d13ba1a
commit e9f5ee3
Showing
1 changed file
with
11 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
e9f5ee3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have bug introduced in this commit. And I would ask, for what it's made?
e9f5ee3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this method we're just calling the initializer/creator for the component. . . It could be in the folliwing form:
Instance Methods:
Class Methods
The first change puts the returned instance in an autorelease pool. . . I don't recall why I added this.
The second change is just for readability.
e9f5ee3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for answer and sorry, I wrong find commit.
I have bug with returning not initialized object. This occurs, because we have condition:
if (definition.initializer.isClassMethod || definition.factoryReference)
And I can't understand for what this made.
e9f5ee3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That if statement does the following:
. . . then start with nil, and fetch the result of the invocation into that and return it.
e9f5ee3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, my issue is related. Not only Core Data, but some other classes make that. And last question, if I remove this condition, all will work fine?
Now I make injecting parameters by raw value. Did you interested to that?
e9f5ee3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm planning to change the Data Access Objects in the Typhoon example application to use Core Data. . . this should then break it, and provide a Test Bed to fix the problem. . I haven't gotten around to doing this yet - part of the problem is that I don't have much experience with Core Data. . . would you be interested in doing that? (Changing the example to use CoreData, and hence breaking it)
e9f5ee3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's fix that problem, and all test done ok, but I'm not sure, that this have not side effects.
I'm too have small experience in core data. But in my opinion, feature that I do can make using core data with typhoon easier.
e9f5ee3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean all of the Typhoon tests? The coverage there is pretty good, so it should be good to go. Nice work.
e9f5ee3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, Then I'm going to do PR now.