BDBooleanQualifier

Inherits from:
BDQualifier
NSObject
Conforms to:
BDQualifierEvaluation
NSCoding
Declared in:
BDControl/BDBooleanQualifier.h

Class at a Glance

A BDBooleanQualifier always evaluates to the boolean value it was created with.


Class Description

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.


Adopted Protocols

BDQualifierEvaluation
-evaluateWithObject:
NSCoding
-encodeWithCoder:
-initWithCoder:

Method Types

Initialization
-initWithValue:
Accessors
-value

Instance Methods

initWithValue:

- (id)initWithValue:(BOOL)value

Initializes an instance of BDBooleanQualifier to the appropriate boolean value.

value

- (BOOL)value

Returns the value with which this qualifier was initialized.


Copyright © 2002, 2003, bDistributed.com, Inc. All rights reserved worldwide.