macOS/iOS API解説

iOS , Mac アプリケーション開発のために使われる主要フレームワークの日本語情報です。2010年代に書かれた内容です。今後更新はありません。

目次

expressionForKeyPath:

Index>Foundation>NSExpression

キーパスから数式を作って返します
+(NSExpression *)expressionForKeyPath:(NSString *)keyPath:

解説

キーパスから数式を作って返します。

返り値

( NSExpression * )

なし

引数

( NSString * )keyPath

クラス

NSExpression

Class Methods

使用可能

10.4

参照

例文

NSPredicate *aPred = [NSComparisonPredicate predicateWithLeftExpression:[NSExpression  expressionForKeyPath:@"*"]
                            rightExpression:[NSExpression  expressionForConstantValue:_aKey]
                                    modifier:NSDirectPredicateModifier
                                        type:NSLikePredicateOperatorType
                                    options:options];