jjzjj

swift - 在 Finder 上下文中建立服务

我正在尝试使用此类向Finder的上下文菜单添加服务:publicclassService{publicfunchandleServices(pboard:NSPasteboard,userData:String,error:UnsafeMutableBufferPointer){//notsureaboutthecorrectparametersif(pboard.types?.contains(NSFilenamesPboardType)!=nil){letfileArray=pboard.propertyListForType(NSFilenamesPboardType)prin