[swift-corelibs-dev] NSURL getResourceValue
danieleggert at me.com
Thu Mar 31 11:23:03 CDT 2016
func resourceValuesForKeys(_ keys: [String]) throws -> [String : AnyObject]
which doesn't use AutoreleasingUnsafeMutablePointer, but that doesn't exist in Swift, either.
And the other one could have a replacement like so:
func resourceValue(forKey key: String) -> AnyObject throws
The "NSURL resource value" API has 7 methods of which none exist in SwiftFoundation.
> On 31 Mar 2016, at 15:37, Zach Waldowski via swift-corelibs-dev <swift-corelibs-dev at swift.org> wrote:
> You can't have AutoreleasingUnsafeMutablePointer without Objective-C
> On Thu, Mar 31, 2016, at 07:17 AM, Daniel Eggert via swift-corelibs-dev
>> What's the reason for the "resource value" API on NSURL not being present
>> in SwiftFoundation?
>> func getResourceValue(_ value:
>> AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey key: String) throws
>> swift-corelibs-dev mailing list
>> swift-corelibs-dev at swift.org
> swift-corelibs-dev mailing list
> swift-corelibs-dev at swift.org
More information about the swift-corelibs-dev