✾, chief troublemaker
(replying to Jordan)
@jrose @porglezomp @saagar @hikari having written that deprecation message, with 15 years of love in my heart, let me say: good riddance
✾, chief troublemaker
(replying to ✾, chief troublemaker)
@jrose @porglezomp @saagar @hikari but yeah, those conformances are forever
Saagar Jha
(replying to ✾, chief troublemaker)
✾, chief troublemaker
(replying to Saagar Jha)
@saagar @jrose @porglezomp @hikari yup, correct. It means that you are inheriting your designated initializer situation from your superclass, that is, you support using your superclass’s initializers to produce a fully functional object of _your_ subclass, and so the init(coder:) of your superclass is good enough for your subclass too.
The moment you add a designated init, the init(coder:) of your superclass isn’t sufficient anymore and you have to do both (if only to fatalErrror out).
Saagar Jha
(replying to ✾, chief troublemaker)
Kanbaru 🌟 (one hikari of too many)
(replying to Saagar Jha)
@saagar @millenomi @porglezomp @jrose btw interface builder can call init on your class if you prefer that to initWithCoder:, but I assume it can't connect outlets and stuff if you do (or can it 🤔)
Kanbaru 🌟 (one hikari of too many)
(replying to Kanbaru 🌟 (one hikari of too many))
@saagar @millenomi @porglezomp @jrose or, of course, set up a frame for a view, so this has questionable utility for actual views
Saagar Jha
(replying to Kanbaru 🌟 (one hikari of too many))
Kanbaru 🌟 (one hikari of too many)
(replying to Saagar Jha)
@saagar @millenomi @porglezomp @jrose [UIButton buttonWithType:UIButtonTypeInfoLight] my beloved