[swift-users] getResourceValue
Rien
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.
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 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>)
>
> and
>
> setResourceValues(URLResourceValues)
>
>>> On 05 Jan 2017, at 20:36, J.E. Schotsman via swift-users <swift-users at 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 at swift.org
> https://lists.swift.org/mailman/listinfo/swift-users
More information about the swift-users
mailing list