NSURLLocalizedNameKey 资源 returns 到底是什么?它与 url 的最后一个路径组件有何不同?
What exactly NSURLLocalizedNameKey resource returns and is it different from the url's last path component?
NSURL
提供方法getResourceValue:forKey:error:
。其中一个可能的键是 NSURLLocalizedNameKey
,它来自 documentation returns:
The resource’s localized or extension-hidden name, returned as an NSString object (read-only).
"localized or extension-hidden name"是什么意思?
它与只调用 [url lastPathComponent]
有什么不同吗?
localized
表示您在英语系统上获得例如 Desktop,Schreibtisch 德语或 テスクテップ 日语
extension-hidden
将 Finder 信息 window 中的复选框视为
lastPathComponent
returns 始终是内部非本地化完整 file/folder 名称。
NSURL
提供方法getResourceValue:forKey:error:
。其中一个可能的键是 NSURLLocalizedNameKey
,它来自 documentation returns:
The resource’s localized or extension-hidden name, returned as an NSString object (read-only).
"localized or extension-hidden name"是什么意思?
它与只调用 [url lastPathComponent]
有什么不同吗?
localized
表示您在英语系统上获得例如 Desktop,Schreibtisch 德语或 テスクテップ 日语extension-hidden
将 Finder 信息 window 中的复选框视为
lastPathComponent
returns 始终是内部非本地化完整 file/folder 名称。