NSLogicalTest

NSLogicalTest Mac OS X 10.0

Instances of this class represent logical operationssuch as AND, OR, and NOTon 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.

figs/cocn_1349.gif

@interface NSLogicalTest : NSScriptWhoseTest
 // Initializers
   - (id)initAndTestWithTests:(NSArray *)subTests;
   - (id)initNotTestWithTest:(NSScriptWhoseTest *)subTest;
   - (id)initOrTestWithTests:(NSArray *)subTests;



    Part II: API Quick Reference
    Chapter 13. Foundation Classes