Is there a way to use something like
if (carRecord.status == CarRecord.statusRepaired) { // using a class constant
// ...
}
such as in a car repair shop, the carRecord
object's state status
is checked against the CarRecord
class's constant. In Objective-C, is there such a way?