如何在10.8中显示文件复制进度 [英] How to display file copy progress in 10.8
问题描述
FSCopyObjectAsync 在OS X v10.8中已弃用,现在如何显示文件复制操作的进度指示器。
FSCopyObjectAsync is Deprecated in OS X v10.8, Now how to display progress indictor for file copy operation.
推荐答案
我的回答假设您正在谈论显示正在复制的单个文件的进度。
My answer assumes you're talking about showing the progress of a single file being copied.
是, FSCopyObjectAsync
已被弃用,但尚未过期。
Yes, "FSCopyObjectAsync
" been deprecated but it's not gone yet.
正如你所发现的,苹果还没有提供一个有用的替代功能,最终将被删除。我怀疑(但不知道肯定),当新的功能进来时,也许为10.9,它将在 NSFileManagerDelegate
协议交付代表使用of。
And as you have discovered, Apple has not yet provided a useful replacement for the functionality that will eventually be removed. I suspect (but do not know for certain) that when the new functionality comes in, perhaps for 10.9, it will be delivered in the "NSFileManagerDelegate
" protocol for delegates to make use of.
为了确保这一点,苹果需要知道有很多开发人员需要这个。在 http://bugreporter.apple.com 提交错误报告,它可能会以重复方式关闭,但每个投票都算。
To make certain of that, Apple needs to be aware there are lots of developers need this. File a bug report at http://bugreporter.apple.com -- it'll likely be closed as a duplicate, but every vote counts.
这篇关于如何在10.8中显示文件复制进度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!