Thanks Rod, very enlightening!
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 15:19, Rod Brown wrote:
>
>
>> On 7 Jan 2017, at 12:50 am, Rien wrote:
>>
>> Hmm, that is i
> On 06 Jan 2017, at 14:39, Rod Brown wrote:
>
> Hi Jan,
>
> The Swift 3 URL struct has a modernized version of the NSURL API which works
> far better in Swift. This replaces “getResourceValue(…)” with the API you
> mentioned: “resourceValues(forKeys:)”.
I still feel the need to extend URL w
> On 7 Jan 2017, at 12:50 am, Rien wrote:
>
> Hmm, that is interesting to know. I had not realised that URL is in fact NOT
> a NSURL but a new type that is based on NSURL (and can be toll-free bridged I
> assume?).
URL a new Type, which internally wraps a NSURL reference. It is practically
t
Hmm, that is interesting to know. I had not realised that URL is in fact NOT a
NSURL but a new type that is based on NSURL (and can be toll-free bridged I
assume?).
I also presume that the same is true for Data/NSData, Date/NSDate etc?
(Failure on my part, as I did of course know that the .path
Hi Jan,
The Swift 3 URL struct has a modernized version of the NSURL API which works
far better in Swift. This replaces “getResourceValue(…)” with the API you
mentioned: “resourceValues(forKeys:)”.
Previously, in Swift 2, you had to use an separate value, use
AutoreleasingUnsafeMutablePointer
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/Swif
> On 06 Jan 2017, at 08:25, Rien 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)
and
setReso
What is your real question?
Obviously the doc says that this is fine, so what are you asking? what is your
problem?
Regards,
Rien
Site: http://balancingrock.nl
Blog: http://swiftrien.blogspot.com
Github: http://github.com/Swiftrien
Project: http://swiftfire.nl
> On 05 Jan 2017, at 20:36, J.E
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!
TIA,
Jan E.__