记录
//将路径传入
NSURL *url = [NSURL fileURLWithPath:self.AppPathTextField.stringValue];
[[NSWorkspace sharedWorkspace] performSelector:@selector(openURL:) withObject:url afterDelay:0.11];
本文介绍了一种在Objective-C中使用NSURL和NSWorkspace来打开指定路径文件的方法,通过简单的代码示例展示了如何实现这一功能。
记录
//将路径传入
NSURL *url = [NSURL fileURLWithPath:self.AppPathTextField.stringValue];
[[NSWorkspace sharedWorkspace] performSelector:@selector(openURL:) withObject:url afterDelay:0.11];
2971

被折叠的 条评论
为什么被折叠?