mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-10 08:58:45 +00:00
Fix some comments.
This commit is contained in:
1 parent
4bad3c2823
commit
345b9d9297
4 files changed
+10
-10
No files matched your search
@@ -7,7 +7,7 @@
|
||||
@import "CPExpression.j"
|
||||
|
||||
/*!
|
||||
A predicate to compare directly the left and right hand sides.
|
||||
A predicate to directly compare the left and right hand sides.
|
||||
@global
|
||||
@class CPComparisonPredicate
|
||||
*/
|
||||
@@ -106,7 +106,7 @@ CPEndsWithPredicateOperatorType = 9;
|
||||
/*!
|
||||
A predicate to determine if the left hand side is in the right hand side.
|
||||
|
||||
For strings, returns YES if the left hand side is a substring of the right hand side . For collections, returns YES if the left hand side is in the right hand side.
|
||||
For strings, returns YES if the left hand side is a substring of the right hand side. For collections, returns YES if the left hand side is in the right hand side.
|
||||
@global
|
||||
@class CPComparisonPredicate
|
||||
*/
|
||||
|
||||
@@ -2,19 +2,19 @@
|
||||
@import "CPPredicate.j"
|
||||
|
||||
/*!
|
||||
A predicate to compare directly the left and right hand sides.
|
||||
A predicate to directly compare the left and right hand sides.
|
||||
@global
|
||||
@class CPCompoundPredicate
|
||||
*/
|
||||
CPNotPredicateType = 0;
|
||||
/*!
|
||||
A predicate to compare directly the left and right hand sides.
|
||||
A predicate to directly compare the left and right hand sides.
|
||||
@global
|
||||
@class CPCompoundPredicate
|
||||
*/
|
||||
CPAndPredicateType = 1;
|
||||
/*!
|
||||
A predicate to compare directly the left and right hand sides.
|
||||
A predicate to directly compare the left and right hand sides.
|
||||
@global
|
||||
@class CPCompoundPredicate
|
||||
*/
|
||||
|
||||
@@ -25,7 +25,7 @@ CPKeyPathExpressionType = 3;
|
||||
*/
|
||||
CPFunctionExpressionType = 4;
|
||||
/*!
|
||||
An expression that defines an aggregate of NSExpression objects.
|
||||
An expression that defines an aggregate of CPExpression objects.
|
||||
*/
|
||||
CPAggregateExpressionType = 5;
|
||||
/*!
|
||||
@@ -161,9 +161,9 @@ CPMinusSetExpressionType = 9;
|
||||
/*!
|
||||
Returns a new expression that will invoke one of the predefined functions.
|
||||
@param function_name The name of the function to invoke.
|
||||
@param parameters An array containing NSExpression objects that will be used as parameters during the invocation of selector.
|
||||
@param parameters An array containing CPExpression objects that will be used as parameters during the invocation of selector.
|
||||
|
||||
For a selector taking no parameters, the array should be empty. For a selector taking one or more parameters, the array should contain one NSExpression object which will evaluate to an instance of the appropriate type for each parameter.
|
||||
For a selector taking no parameters, the array should be empty. For a selector taking one or more parameters, the array should contain one CPExpression object which will evaluate to an instance of the appropriate type for each parameter.
|
||||
|
||||
If there is a mismatch between the number of parameters expected and the number you provide during evaluation, an exception may be raised or missing parameters may simply be replaced by nil (which occurs depends on how many parameters are provided, and whether you have over- or underflow).
|
||||
@return A new expression that invokes the function name using the parameters in parameters.
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
- (id)initWithOperand:(CPExpression)operand andKeyPath:(CPString)keyPath
|
||||
{
|
||||
var arg = [CPExpression expressionForConstantValue:keyPath];
|
||||
// Cocoa: if it's a direct path selector is valueForKey:
|
||||
// Cocoa: if it's a direct path selector use valueForKey:
|
||||
self = [super initWithTarget:operand selector:@selector(valueForKeyPath:) arguments:[arg] type:CPKeyPathExpressionType];
|
||||
|
||||
return self;
|
||||
@@ -27,7 +27,7 @@
|
||||
if (object === self)
|
||||
return YES;
|
||||
|
||||
return ([object keyPath] == [self keyPath]); //If it appears that parsing generates nested keypaths with different targets and same keyPath, comparing -keyPath won't work.
|
||||
return ([object keyPath] == [self keyPath]); // If it appears that parsing generates nested keypaths with different targets and same keyPath, comparing -keyPath won't work.
|
||||
}
|
||||
|
||||
- (CPExpression)pathExpression
|
||||
|
||||
Reference in new issue
Block a user