I'm trying to clarify some of Obj-C classes composition issues. I have 3 classes: Car, Control, and Wheels.
Car class initializes Control and Wheels classes. I was going to create a simple test iPhone application containing a UISlider
and UILabel
. When UISlider value is changed, a message must be sent (I was going to send it from Control class) to one of the Wheels class methods.
So the question is: how to properly send a message from Control directly to Wheels? Should I handle Control messages and Wheels responds only through Car class methods?