Profile Photo
Is there documentation for converting Data to any specific Type ?   I'm trying to get & set Date Last Opened and came across a nice extension someone posted for getting & settings Extra Attributes  ... https://stackoverflow.com/questions/38343186/write-extend-file-attributes-swift-example it's the first response. Found the attribute… (Show more)
in Swift
Profile Photo
My appologies for posting so much recently.   Just having a mess around and probably far off from a decent result but if you get the idea of what I'm looking for then would appreciate a reply ...   public enum anEnum {… (Show more)
in Swift
Profile Photo
Is this possible ? ... static func loadJSON<T>(_ url: URL, arrayType: T.Type) let json_array: [AnyObject] = try JSONDecoder().decode(Array<T>.self, from: json_data)  Trying to make my loading func a bit more dynamic.
in Swift
Profile Photo
No idea if this is a bug if not why is it happening ? ...   static func writeJSON(_ url: URL,_ array: [Array],_ completion: ((_ success: Bool,_ error: String) -> Void)?)  Doing this works fine but ...   static func writeJSON(_ url: URL,_ array: [Array]? = nil,_ completion: ((_ success: Bool,_ error: String) -> Void)?)  Doesn't work ? Yet… (Show more)
in Swift
Profile Photo
Trying to find the fastest way to check if a movie file (mp4 / m4v...) has Metadata Artwork. I have 2 different ways at the moment because I don't want to use AVMetadataIdentifier but the first seems to be faster than the second but both are kinda slow ...   let ident: AVMetadataIdentifier = .commonIdentifierArtwork… (Show more)
Profile Photo
Couldn't find anything for Swift just for C# https://stackoverflow.com/questions/10107140/how-do-i-measure-how-long-a-function-is-running   Is there anything I can use with Swift ?
in Swift
Profile Photo
NSAlert same as NSOpenPanel have Style "Sheet" but this way is Asynchronous. Ideally want this to be Synchronous.   For the NSAlert (buttons) I tried using Selector for Target/Action but realised there is no way to pass a Parameter, then wondered if I could get a return result from the func where the Alert is created but no as it's Async. Both… (Show more)
in Swift
Profile Photo
Iterating over a Dictionary where Key is String and Value is Selector using ... for (b,a) in buttons {      let index = buttons.index(forKey: b) } I want to get an Int from the Index ? from Dictionary<String,Selector>.Index?
in Swift
Profile Photo
Not sure if I have to do this programmatically or if there is something I should specifically use but I want to display a Progress Indicator when copying / moving files including the ability to cancel ?   Also making the copy Async.   (local hdd not web)
in Files and Storage
Profile Photo
Can't find info on working with Volumes. Need to know how to work outside the Users folder / get the root folder / check if files or directories are on same volume / copy or move from one to another etc?
in Files and Storage
Profile Photo
Looking for more metadata info, at the moment found https://affiliate.itunes.apple.com/resources/documentation/itunes-store-web-service-search-api/ which is restricted to only 20 searches per minute also doesn't have fields such as Studio / Cast / Director etc.   Can I find more info with iTunes or try another service ?
in Cocoa
Load more items