NSLogicalTest |
Mac OS X 10.0 |
Instances of this class represent logical operations—such as
AND, OR, and NOT—on a set of Boolean tests. These
Boolean
tests are represented by instances of the class
NSSpecifierTest. Instances of this class are
initialized with one of three initializers:
initAndTestWithTests:,
initOrTestWithTests:, and
initNotTestWithTest:. The AND and OR initializers
both take an NSArray of test objects, while the
NOT initializer requires only one test object. When an
NSLogicalTest object is evaluated (by receiving an
isTrue message), it sends
isTrue messages to each of its component test
objects, and then evaluate those results based on the type of logical
test being performed.
@interface NSLogicalTest : NSScriptWhoseTest
|
// Initializers |
- (id)initAndTestWithTests:(NSArray *)subTests;
|
- (id)initNotTestWithTest:(NSScriptWhoseTest *)subTest;
|
- (id)initOrTestWithTests:(NSArray *)subTests;
|
|