NSArrayController でソートに使用するカラムを指定する

Cocoaに関するヌマタメモ
2008年11月29日 22:16
NSSortDescriptor *sortDescriptor = 
    [[[NSSortDescriptor alloc] initWithKey:@"ソートに使用する項目のキー" ascending:YES] autorelease];
[myArrayController setSortDescriptors:[NSArray arrayWithObjects:sortDescriptor, nil]]; 

コメントを書く


トラックバックはありません。

トラックバックURL: http://numata.designed.jp/mt-tb.cgi/34