Skip to content
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

Can't inject NSArray runtime arg #196

Closed
jasperblues opened this issue Mar 14, 2014 · 1 comment
Closed

Can't inject NSArray runtime arg #196

jasperblues opened this issue Mar 14, 2014 · 1 comment
Assignees

Comments

@jasperblues
Copy link
Member

Created a definition as follows:

- (id)userProfileViewControllerWithPassword:(NSString*)password user:(VBUser*)user loyaltyAccounts:(NSArray*)loyaltyAccounts
{
    return [TyphoonDefinition withClass:[VBUserProfileViewController class] initialization:^(TyphoonInitializer* initializer)
    {
        initializer.selector = @selector(initWithPassword:user:loyaltyAccounts:userProfileClient:keyChain:countryDao:userProfileView:);
        [initializer injectParameterWith:password];
        [initializer injectParameterWith:user];
        [initializer injectParameterWith:loyaltyAccounts];
        [initializer injectParameterWith:[_networkComponents userProfileClient]];
        [initializer injectParameterWith:[self keyChain]];
        [initializer injectParameterWith:[_persistenceComponents countryDao]];
        [initializer injectParameterWith:[self userProfileView]];

    } properties:^(TyphoonDefinition* definition)
    {
        definition.scope = TyphoonScopePrototype;
        [definition injectProperty:@selector(title) with:@"Settings"];
    }];
}

without the loyaltyAccounts its ok. . adding causes crash.

@alexgarbarev alexgarbarev self-assigned this Mar 14, 2014
@alexgarbarev
Copy link
Contributor

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants