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

Setter with no property should proceed #86

Closed
jasperblues opened this issue Sep 30, 2013 · 1 comment
Closed

Setter with no property should proceed #86

jasperblues opened this issue Sep 30, 2013 · 1 comment
Labels

Comments

@jasperblues
Copy link
Member

If you create a setter with no corresponding property, Typhoon would not be able to do type introspection - the runtime doesn't provide this.

However, it should go ahead and try to inject a specified dependency. Instead it throws with:

2013-09-30 11:13:24.177 mplus[28880:a0b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Tried to inject property 'theme' on object of type 'MPMenuView', but the instance has no setter for this property.'

. . this error message is confusing.

@alexgarbarev
Copy link
Contributor

Use new injectMethod: approach to inject setter without property. I think this issue can be closed

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

No branches or pull requests

2 participants