Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Default initializers do not call standard initializers #137

Open
CodaFi opened this Issue Nov 13, 2012 · 1 comment

Comments

Projects
None yet
2 participants

CodaFi commented Nov 13, 2012

Scattered throughout the framework are controls which have the propensity to not initialize themselves completely if, say, -init is called over -initWithFrame:. Controls that exhibit this behavior often do not show themselves (such as TUIButton) in the view because they forget to initialize their subcomponents. I propose a change to the coding conventions, in that setup work that does not involve the parameter(s) requested by the default initializer be done in -init or -commonInit so that all initializers in the framework create valid, and complete versions of themselves.

@CodaFi CodaFi closed this Nov 21, 2012

@CodaFi CodaFi reopened this Nov 21, 2012

@CodaFi I've noticed this as well, having switched back to the github's TwUI fork from my private fork. I can try to fix this in my catalog example PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment