- Inherits from:
- BDQualifier
- NSObject
- Conforms to:
- BDQualifierEvaluation
- NSCoding
- Declared in:
- BDControl/BDBooleanQualifier.h
A BDBooleanQualifier always evaluates to the boolean value it was created with.
When a BDBooleanQualifier is evaluated, it always returns the value that it was initialized with. This may seem useless at first glance; however, there may be cases when it is easier for developers to use a qualifier that always evaluates to a known value than to write special-case code.
One example that comes to mind is a list being filtered by text the user enters; instead of writing special-case code to not filter the list when the user has entered no text, the developer could default to a boolean qualifier with a value of YES.
- BDQualifierEvaluation
- -evaluateWithObject:
- NSCoding
- -encodeWithCoder:
- -initWithCoder:
- Initialization
- -initWithValue:
- Accessors
- -value
- (id)initWithValue:(BOOL)value
Initializes an instance of BDBooleanQualifier to the appropriate boolean value.
- (BOOL)value
Returns the value with which this qualifier was initialized.