We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
For properties, the Objective-C run-time provides type-introspection. Therefore, injection can be done by matching the required-type, as follows:
- (Knight *)knight { return [TyphoonDefinition withClass:[Knight class] configuration:^(TyphoonDefinition *definition) { [definition injectProperty:@selector(quest)]; }]; }
Why can't be the same be achieved by using an "initWith"? Some like this:
- (Knight *)knight { return [TyphoonDefinition withClass:[Knight class] configuration:^(TyphoonDefinition *definition) { [definition useInitializer:@selector(initWithQuest:)]; }]; }
The text was updated successfully, but these errors were encountered:
Because Objective-C runtine doesn't provide information about argument type (which class) of methods. That information available only for properties
Sorry, something went wrong.
Makes sense. Thanks for the info!
No branches or pull requests
For properties, the Objective-C run-time provides type-introspection. Therefore, injection can be done by matching the required-type, as follows:
Why can't be the same be achieved by using an "initWith"? Some like this:
The text was updated successfully, but these errors were encountered: