button states should be compared against the constants NSOnState/NSOffState/NSMixedState