NSException in init when having a custom designated initialiser?
I have a custom View Controller that is a subclass of UIViewController that requires a data object to be set up properly. Without this object, showing the VC doesn’t make any sense.
So I created a custom initialiser that requires this object to be passed as an parameter/argument.
There is also no “default” data object, so there is no point for me to override the inherited init, and implement passing this default data object internally from init to custom init.
NSException in init when having a custom designated initialiser?
I have a custom View Controller that is a subclass of UIViewController that requires a data object to be set up properly. Without this object, showing the VC doesn’t make any sense.
So I created a custom initialiser that requires this object to be passed as an parameter/argument.
There is also no “default” data object, so there is no point for me to override the inherited init, and implement passing this default data object internally from init to custom init.
What is the correct Object Design/Architecture for the following scenario?
I am developing some custom controls in an Object Oriented language (using Swift/Cocoa but this is a technology agnostic question). In particular, I have a horizontal and vertical set of buttons that behave very similarly except for the fact that one is oriented vertically and the other horizontally.
What is the correct Object Design/Architecture for the following scenario?
I am developing some custom controls in an Object Oriented language (using Swift/Cocoa but this is a technology agnostic question). In particular, I have a horizontal and vertical set of buttons that behave very similarly except for the fact that one is oriented vertically and the other horizontally.
What is the correct Object Design/Architecture for the following scenario?
I am developing some custom controls in an Object Oriented language (using Swift/Cocoa but this is a technology agnostic question). In particular, I have a horizontal and vertical set of buttons that behave very similarly except for the fact that one is oriented vertically and the other horizontally.
What is the correct Object Design/Architecture for the following scenario?
I am developing some custom controls in an Object Oriented language (using Swift/Cocoa but this is a technology agnostic question). In particular, I have a horizontal and vertical set of buttons that behave very similarly except for the fact that one is oriented vertically and the other horizontally.