validateVisibleColumns
コラムをリロードします
解説
コラムをリロードします。
返り値
( void )
なし
引数
フレームワーク
ApplicationKit
クラス
NSSavePanel
Instance Methods
使用可能
10.0
参照
例文
#import "Controller.h" NSSavePanel *spanel; @implementation Controller - (IBAction)pushButton:(id)sender { spanel = [NSSavePanel savePanel]; [spanel setAccessoryView:acView]; [spanel setDelegate:self]; [spanel setRequiredFileType:@"app"]; [spanel beginSheetForDirectory:NSHomeDirectory() file:nil modalForWindow:myWindow modalDelegate:self didEndSelector:@selector(didEndSaveSheet:returnCode:conextInfo:) contextInfo:NULL]; } - (IBAction)kousin:(id)sender//アクセサリービューのボタンを押す { if ([spanel treatsFilePackagesAsDirectories]){//パッケージの中を表示するか [spanel setTreatsFilePackagesAsDirectories:NO]; [sender setTitle:@"hide"]; }else{ [spanel setTreatsFilePackagesAsDirectories:YES]; [sender setTitle:@"visible"]; } [spanel validateVisibleColumns]; } //セーブパネルのデリゲート -(NSComparisonResult)panel:(id)sender compareFilename:(NSString *)fileName1 with:(NSString *)fileName2 caseSensitive:(BOOL)flag { //NSLog([NSString stringWithFormat:@"%@,%@",fileName1,fileName2]); return [fileName1 compare:fileName2]; } -(void)didEndSaveSheet:(NSSavePanel *)savePanel returnCode:(int)returnCode conextInfo:(void *)contextInfo { if (returnCode == NSOKButton){ NSLog([[savePanel accessoryView] className]); }else{ NSLog(@"Cansel"); } } @end