Rien at Balancingrock.nl
Fri Jan 6 03:38:59 CST 2017
URL is the same as NSURL in Swift 3
Foundation -> NSURL -> getResourceValue.
If you use xcode, open up the Help -> Documentation and API reference
The do a search for getResourceValue.
> On 06 Jan 2017, at 10:01, J.E. Schotsman via swift-users <swift-users at swift.org> wrote:
>> On 06 Jan 2017, at 08:25, Rien <Rien at Balancingrock.nl> wrote:
>> What is your real question?
>> Obviously the doc says that this is fine, so what are you asking? what is your problem?
> Which doc?
> My doc is the Xcode 8.2.1 documentation for URL, which only has the methods
> resourceValues(forKeys: Set<URLResourceKey>)
>>> On 05 Jan 2017, at 20:36, J.E. Schotsman via swift-users <swift-users at swift.org> wrote:
>>> Is getResourceValue a method or URL or only on NSURL?
>>> After migrating a project to Swift 3 I have code like
>>> var file:URL
>>> file.getResourceValue(...) // compiles!
>>> From the documentation and the headers I get the impression that this should not compile!
> swift-users mailing list
> swift-users at swift.org
More information about the swift-users