NSTableColumnを使って並べ替えましたsort descriptors。には次のコードを使用しましたSorting。
NSSortDescriptor *sortDescriptor = [[NSSortDescriptor alloc] initWithKey:@"Column3" ascending:NO];
NSArray *sortDescriptors= [NSArray arrayWithObject:sortDescriptor];
[self.dataArray sortUsingDescriptors:sortDescriptors];
[tableView setIndicatorImage:[NSImage imageNamed:@"NSAscendingSortIndicator"]
inTableColumn:[tableView tableColumnWithIdentifier:@"Column3"]];
から画像を取得でき[NSImage imageNamed:@"NSAscendingSortIndicator"]ますが、テーブルビュー ヘッダーで画像を表示できません。
でそれを取得するためにmouse clickをシミュレートする方法はありますか(テーブル ヘッダーの上矢印または下矢印) 。table columnSort indicatortable column