小编Pau*_*aul的帖子

在Finder中显示不在10.8中工作

这适用于10.7但不是10.8.我如何在Mountain Lion中使用它?

-(IBAction)showTargetInFinder:(id)sender
{

     NSString *linkPath = [targetField stringValue];
     NSWorkspace *ws = [NSWorkspace sharedWorkspace];
     [ws selectFile:linkPath inFileViewerRootedAtPath:nil];

}
Run Code Online (Sandbox Code Playgroud)

cocoa nsworkspace

6
推荐指数
1
解决办法
1385
查看次数

标签 统计

cocoa ×1

nsworkspace ×1