templatesWithAttributeKeyPaths:inEntityDescription:
**
+(NSArray *)templatesWithAttributeKeyPaths:(NSArray *)keyPaths:
inEntityDescription:(NSEntityDescription *)entityDescription:
解説
与えられたエントリーの属性キーパスの条件テンプレートの配列を返します。
返り値
( NSArray * )
引数
( NSArray * )keyPaths
( NSEntityDescription * )entityDescription
フレームワーク
ApplicationKit
クラス
NSPredicateEditorRowTemplate
Class Methods
使用可能
10.5
参照
例文
templateViews
**
解説
レシーバーのビューを返します。
返り値
( NSArray * )
引数
フレームワーク
ApplicationKit
クラス
NSPredicateEditorRowTemplate
使用可能
10.5
参照
例文
criteriaForRow:
**
-(NSArray *)criteriaForRow:(NSInteger)row:
解説
現在選択している項目を返します。
返り値
( NSArray * )
現在選択している項目
引数
( NSInteger )row
レシーバーでの行の数
フレームワーク
ApplicationKit
クラス
NSRuleEditor
使用可能
10.5
参照
例文
displayValuesForRow:
**
-(NSArray *)displayValuesForRow:(NSInteger)row:
解説
行から与えられた選択値を返します。
返り値
( NSArray * )
行で選択した値(文字、ビューメニュー項目)
引数
( NSInteger )row
レシーバーでの行の番号
フレームワーク
ApplicationKit
クラス
NSRuleEditor
使用可能
10.5
参照
例文
formattingDictionary
**
解説
レシーバーのフォーマットされた辞書を返します。
返り値
( NSDictionary * )
レシーバーのフォマットされた辞書
引数
フレームワーク
ApplicationKit
クラス
NSRuleEditor
使用可能
10.5
参照
例文
formattingStringsFileName
**
解説
レシーバーの文字ファイルの名前を返します。
返り値
( NSString * )
レシーバーの文字ファイルの名前
引数
フレームワーク
ApplicationKit
クラス
NSRuleEditor
使用可能
10.5
参照
– setFormattingStringsFileName:
例文
insertRowAtIndex:withType:asSubrowOfRow:animate:
指定の位置に指定の行を追加します
-(void)insertRowAtIndex:(NSInteger)rowIndex: withType:(NSRuleEditorRowType)rowType: asSubrowOfRow:(NSInteger)parentRow: animate:(BOOL)shouldAnimate:
解説
指定の位置に指定の行を追加します。
返り値
( void )
引数
( NSInteger )rowIndex
( NSRuleEditorRowType )rowType
( NSInteger )parentRow
( BOOL )shouldAnimate
フレームワーク
ApplicationKit
クラス
NSRuleEditor
使用可能
10.5
参照
例文
isEditable
**
解説
レシーバーが編集可能か返します。
デフォルトはYES。
返り値
( BOOL )
編集可能ならYESを、そうでなければNOを返します。
引数
フレームワーク
ApplicationKit
クラス
NSRuleEditor
使用可能
10.5
参照
– setEditable:
例文
nestingMode
**
解説
レシーバーのネストモードを返します。
返り値
( NSRuleEditorNestingMode )
レシーバーのネストモード
引数
フレームワーク
ApplicationKit
クラス
NSRuleEditor
使用可能
10.5
参照
– setNestingMode:
例文
numberOfRows
**
解説
レシーバーの行の数を返します。
返り値
( NSInteger )
レシーバーでの行の数
引数
フレームワーク
ApplicationKit
クラス
NSRuleEditor
使用可能
10.5
参照
例文
parentRowForRow:
**
-(NSInteger)parentRowForRow:(NSInteger)rowIndex:
解説
親の行の番号を返します。
rowIndexが0よりも小さい、または行数以上であればNSRangeExceptionを起こします。
返り値
( NSInteger )
親の行の番号、なければ-1
引数
( NSInteger )rowIndex
行の番号
フレームワーク
ApplicationKit
クラス
NSRuleEditor
使用可能
10.5
参照
例文
predicate
**
解説
条件を返します。
デリゲートの実装がruleEditor:predicatePartsForCriterion:withDisplayValue:inRow:ならレシーバーの条件を返します。
デリゲートの実装がruleEditor:predicatePartsForCriterion:withDisplayValue:inRow:、またはデリゲートが全ての条件を作るのに充分なパートを返さないならnilを返します。
返り値
( NSPredicate * )
引数
フレームワーク
ApplicationKit
クラス
NSRuleEditor
使用可能
10.5
参照
例文
predicateForRow:
**
-(NSPredicate *)predicateForRow:(NSInteger)row:
解説
与えられた行の条件を返します。
直接呼び出す必要はあまりありませんが、サブクラスでオーバーライドできます。
返り値
( NSPredicate * )
行での条件式
引数
( NSInteger )row
フレームワーク
ApplicationKit
クラス
NSRuleEditor
使用可能
10.5
参照
例文
reloadCriteria
**
解説
デリゲートで再フェッチの判断があったとレシーバーに指示する
返り値
( void )
引数
フレームワーク
ApplicationKit
クラス
NSRuleEditor
使用可能
10.5
参照
例文
reloadPredicate
**
解説
対応するデリゲートメソッドを起動することによりその条件の再作成をレシーバーに指示する
返り値
( void )
引数
フレームワーク
ApplicationKit
クラス
NSRuleEditor
使用可能
10.5
参照
例文
removeRowAtIndex:
**
-(void)removeRowAtIndex:(NSInteger)rowIndex:
解説
与えられた番号で行を取り除きます。
削除される行の全てのサブ行はデリートされる行の親の行の子になる。またはルート行をつくる
もしrowIndexが行数以上、または0よりも小さければこのメソッドはNSRangeExceptionを起こします。
返り値
( void )
レシーバーの行の番号
引数
( NSInteger )rowIndex
フレームワーク
ApplicationKit
クラス
NSRuleEditor
使用可能
10.5
参照
例文
removeRowsAtIndexes:includeSubrows:
**
-(void)removeRowsAtIndexes:(NSIndexSet *)rowIndexes: includeSubrows:(BOOL)includeSubrows:
解説
与えられた番号の行を取り除きます。
rowIndexesの番号が行数以上、または0よりも小さければこのメソッドはNSRangeExceptionを起こします。
レシーバーの行のインデックス
返り値
( void )
引数
( NSIndexSet * )rowIndexes
( BOOL )includeSubrows
フレームワーク
ApplicationKit
クラス
NSRuleEditor
使用可能
10.5
参照
例文
rowForDisplayValue:
**
-(NSInteger)rowForDisplayValue:(id)displayValue:
解説
与えられた値を含む行の番号を返します。
返り値
( NSInteger )
引数
( id )displayValue
フレームワーク
ApplicationKit
クラス
NSRuleEditor
使用可能
10.5
参照
例文
rowTypeForRow:
**
-(NSRuleEditorRowType)rowTypeForRow:(NSInteger)rowIndex:
解説
与えられた行のタイプを返します。
もしrowIndexが0よりも小さかったり、行数以上だったらメソッドはNSRangeExceptionを起こします。
返り値
( NSRuleEditorRowType )
rowIndexで指定した行のタイプ
引数
( NSInteger )rowIndex
フレームワーク
ApplicationKit
クラス
NSRuleEditor
使用可能
10.5
参照
例文
selectedRowIndexes
**
解説
レシーバーの選択された行のインデックスを返します。
返り値
( NSIndexSet * )
レシーバーの選択された行のインデックス
引数
フレームワーク
ApplicationKit
クラス
NSRuleEditor
使用可能
10.5
参照
例文
selectRowIndexes:byExtendingSelection:
**
-(void)selectRowIndexes:(NSIndexSet *)indexes: byExtendingSelection:(BOOL)extend:
解説
レシーバーで行の選択をインデックスでセットします。
もしインデックスが行の数より大きかったり0よりも小さければ、このメソッドは例外NSRangeExceptionを起こします。
返り値
( void )
引数
( NSIndexSet * )indexes
( BOOL )extend
フレームワーク
ApplicationKit
クラス
NSRuleEditor
使用可能
10.5