摘要:
NSMutableString *whole = [self.textView.textStorage mutableString]; [whole appendString:str]; NSURL *url = [NSURL URLWithString:[fileDir stringByAppendingFormat:@"%@.h", name]]; [str writeToURL:url atomically:YES encoding:NSUTF8StringEncoding error:nil]; NSData *data = [str d... 阅读全文
摘要:
// Create and configure the panel. NSOpenPanel* panel = [NSOpenPanel openPanel]; [panel setCanChooseDirectories:NO]; [panel setAllowsMultipleSelection:NO]; [panel setMessage:@"Import one or more files or directories."]; // Display the panel attached to the document's window. ... 阅读全文