macOS/iOS API解説

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

目次

sortDescriptorPrototype

ソートデスクリプタのプロトタイプを返します

解説

ソートデスクリプタのプロトタイプを返します。

返り値

( NSSortDescriptor * )

引数

フレームワーク

ApplicationKit

クラス

NSTableColumn

Instance Methods

使用可能

10.3

参照

-setSortDescriptorPrototype:

例文

#import "MyObject.h"

@implementation MyObject
//myOutlet テーブルビュー
//tColumn1 テーブルコラム
//tColumn2 テーブルコラム
- (IBAction)myAction:(id)sender
{
NSSortDescriptor *descriptor=[[[NSSortDescriptor alloc] initWithKey:@"key1" 
                                                    ascending:NO] autorelease];
                                                    
[tColumn1 setSortDescriptorPrototype:descriptor];


NSLog(@"%@",[[tColumn1 sortDescriptorPrototype] description]);
}

@end