abrir ficheros小组
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了abrir ficheros小组相关的知识,希望对你有一定的参考价值。
- (IBAction)chooseWhere:(id)sender { NSLog(@"Choosing where"); // TODO: remove the item NSOpenPanel *panel = [[NSOpenPanel alloc] init]; [panel setCanChooseDirectories:YES]; [panel setCanCreateDirectories:YES]; // Added by DustinVoss [panel setPrompt:@"Choose folder"]; // Should be localized [panel setCanChooseFiles:NO]; destinationFolder = [[NSString alloc] init]; [panel beginSheetForDirectory:nil file:destinationFolder types:nil modalForWindow:mainWindow modalDelegate:self didEndSelector:@selector(openPanelDidEnd: returnCode: contextInfo:) contextInfo:nil]; } - (void)openPanelDidEnd:(NSOpenPanel *)sheet returnCode:(int)returnCode contextInfo:(void *)contextInfo{ if (returnCode==NSOKButton){ destinationFolder = [sheet filename]; [destinationTextField setStringValue:destinationFolder]; NSLog(@"OK button pressed"); } if (returnCode==NSCancelButton){ NSLog(@"Cancel button pressed"); } // stringByAppendingString:@"Open panel ended"]; NSLog(destinationFolder); }
以上是关于abrir ficheros小组的主要内容,如果未能解决你的问题,请参考以下文章
json Puppeteer abrir varios navegadores
text 禁用javascript,abrir链接vacion javascript
text 禁用javascript,abrir链接vacion javascript