In ruby, you can do this:
And then access like this:
Code:
class Command
STATUS = {
1 => { :immobilizer => "OFF" },
2 => { :immobilizer => "ON" },
3 => { :siren => "OFF" },
4 => { :siren => "ON" },
}
end
And then access like this:
Code:
Command::STATUS[1] // => { :immobilizer => "OFF" }
I'm wondering how to do the same thing in objective-c.
thanks for response