{"action":"created","issue":{"url":"https://api.github.com/repos/appsquickly/Typhoon/issues/368","labels_url":"https://api.github.com/repos/appsquickly/Typhoon/issues/368/labels{/name}","comments_url":"https://api.github.com/repos/appsquickly/Typhoon/issues/368/comments","events_url":"https://api.github.com/repos/appsquickly/Typhoon/issues/368/events","html_url":"https://github.com/appsquickly/Typhoon/issues/368","id":86950386,"number":368,"title":"Allow the use of runtime args inside definitions with a factory","user":{"login":"plandem","id":1381366,"avatar_url":"https://avatars.githubusercontent.com/u/1381366?v=3","gravatar_id":"","url":"https://api.github.com/users/plandem","html_url":"https://github.com/plandem","followers_url":"https://api.github.com/users/plandem/followers","following_url":"https://api.github.com/users/plandem/following{/other_user}","gists_url":"https://api.github.com/users/plandem/gists{/gist_id}","starred_url":"https://api.github.com/users/plandem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plandem/subscriptions","organizations_url":"https://api.github.com/users/plandem/orgs","repos_url":"https://api.github.com/users/plandem/repos","events_url":"https://api.github.com/users/plandem/events{/privacy}","received_events_url":"https://api.github.com/users/plandem/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/appsquickly/Typhoon/labels/debate","name":"debate","color":"cc317c"},{"url":"https://api.github.com/repos/appsquickly/Typhoon/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/appsquickly/Typhoon/labels/ready-for-review","name":"ready-for-review","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-06-10T12:17:50Z","updated_at":"2015-06-11T13:32:30Z","closed_at":null,"body":"i still can't resolve issue:\r\nhttps://github.com/appsquickly/Typhoon/issues/367\r\n\r\nActually there is a lack of documentation about that subject. It's not good when newcomers trying to solve the quite simple task for few days without any success and ideas how to solve it. It's not so easy to deep into the sources to understand all internal things, stacktrace is quite useless - just common messages with 0 helpful information.\r\n\r\nOk, i will short my message:\r\n\r\nwhy this is working?\r\n```\r\n- (TyphoonStoryboard *)storyboard {\r\n\treturn [TyphoonDefinition withClass:[TyphoonStoryboard class] configuration:^(TyphoonDefinition* definition) {\r\n\t\t[definition useInitializer:@selector(storyboardWithName:factory:bundle:) parameters:^(TyphoonMethod *initializer) {\r\n\t\t\t[initializer injectParameterWith:@\"Diary\"];\r\n\t\t\t[initializer injectParameterWith:self];\r\n\t\t\t[initializer injectParameterWith:[NSBundle mainBundle]];\r\n\t\t}];\r\n\r\n\t\tdefinition.scope = TyphoonScopeSingleton;\r\n\t}];\r\n}\r\n\r\n-(LADiaryMainViewController *)mainViewController {\r\n\treturn [TyphoonDefinition withFactory:[self storyboard] selector:@selector(instantiateInitialViewController)];\r\n}\r\n```\r\n\r\nand this one is not working?\r\n```\r\n- (TyphoonStoryboard *)storyboardWithName:(NSString *)name {\r\n\treturn [TyphoonDefinition withClass:[TyphoonStoryboard class] configuration:^(TyphoonDefinition* definition) {\r\n\t\t[definition useInitializer:@selector(storyboardWithName:factory:bundle:) parameters:^(TyphoonMethod *initializer) {\r\n\t\t\t[initializer injectParameterWith:name];\r\n\t\t\t[initializer injectParameterWith:self];\r\n\t\t\t[initializer injectParameterWith:[NSBundle mainBundle]];\r\n\t\t}];\r\n\t}];\r\n}\r\n\r\n-(LADiaryMainViewController *)mainViewController {\r\n\treturn [TyphoonDefinition withFactory:[self storyboardWithName:@\"Diary\"] selector:@selector(instantiateInitialViewController)];\r\n}\r\n```\r\nAt second i just get magic useless message like:\r\n```\r\n [__NSArrayM insertObject:atIndex:]: object cannot be nil\r\n```\r\n\r\nI really need help, because i'm trying to solve it second day already and i'm ready to give up.\r\n"},"comment":{"url":"https://api.github.com/repos/appsquickly/Typhoon/issues/comments/111136427","html_url":"https://github.com/appsquickly/Typhoon/issues/368#issuecomment-111136427","issue_url":"https://api.github.com/repos/appsquickly/Typhoon/issues/368","id":111136427,"user":{"login":"alexgarbarev","id":2268687,"avatar_url":"https://avatars.githubusercontent.com/u/2268687?v=3","gravatar_id":"","url":"https://api.github.com/users/alexgarbarev","html_url":"https://github.com/alexgarbarev","followers_url":"https://api.github.com/users/alexgarbarev/followers","following_url":"https://api.github.com/users/alexgarbarev/following{/other_user}","gists_url":"https://api.github.com/users/alexgarbarev/gists{/gist_id}","starred_url":"https://api.github.com/users/alexgarbarev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexgarbarev/subscriptions","organizations_url":"https://api.github.com/users/alexgarbarev/orgs","repos_url":"https://api.github.com/users/alexgarbarev/repos","events_url":"https://api.github.com/users/alexgarbarev/events{/privacy}","received_events_url":"https://api.github.com/users/alexgarbarev/received_events","type":"User","site_admin":false},"created_at":"2015-06-11T13:32:30Z","updated_at":"2015-06-11T13:32:30Z","body":"@jasperblues yeah, I did that."}}