expressionForKeyPath:
キーパスから数式を作って返します
+(NSExpression *)expressionForKeyPath:(NSString *)keyPath:
解説
キーパスから数式を作って返します。
返り値
( NSExpression * )
なし
引数
( NSString * )keyPath
フレームワーク
Foundation
クラス
NSExpression
Class Methods
使用可能
10.4
参照
例文
NSPredicate *aPred = [NSComparisonPredicate predicateWithLeftExpression:[NSExpression expressionForKeyPath:@"*"]
rightExpression:[NSExpression expressionForConstantValue:_aKey]
modifier:NSDirectPredicateModifier
type:NSLikePredicateOperatorType
options:options];