Name
NSLogicalTest — Mac OS X 10.0
Synopsis
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; |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access
