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. Regards, Rien Site: http://balancingrock.nl Blog: http://swiftrien.blogspot.com Github: http://github.com/Swiftrien Project: http://swiftfire.nl > On 06 Jan 2017, at 10:01, J.E. Schotsman via swift-users > <swift-users@swift.org> wrote: > > >> On 06 Jan 2017, at 08:25, Rien <r...@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>) > > and > > setResourceValues(URLResourceValues) > >>> On 05 Jan 2017, at 20:36, J.E. Schotsman via swift-users >>> <swift-users@swift.org> wrote: >>> >>> Hello, >>> >>> 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@swift.org > https://lists.swift.org/mailman/listinfo/swift-users _______________________________________________ swift-users mailing list swift-users@swift.org https://lists.swift.org/mailman/listinfo/swift-users