sortDescriptors
テーブルビューのソートデスクリプタを返します
解説
テーブルビューのソートデスクリプタを返します。
返り値
( NSArray * )
配列
引数
フレームワーク
ApplicationKit
クラス
NSTableView
Instance Methods
使用可能
10.3
参照
-setSortDescriptors:
例文
NSMutableArray *arr = [[NSMutableArray array] retain]; NSSortDescriptor *descriptor=[[NSSortDescriptor alloc] initWithKey:@"COL1" ascending:YES selector:@selector(compare:)]; [arr addObject:descriptor]; [table setSortDescriptors:arr]; NSLog([[table sortDescriptors] description]);