Feb 21 2017
From the ‘don’t try this at home’ files
Source hidden to protect the guilty (who otherwise write very good code, but this jumped out) let urls = FileManager.default.urls(for: .libraryDirectory, in: .userDomainMask) print(urls[urls.count-1] as NSURL) For the searchMask .libraryDirectory, this function always returns an array containing a single URL, [file:///Users/username/Library/] so urls[urls.count-1] will give you urls, but it’s not clear from the code that […]
Mar 10 2017
Learn Core Data in 50 Easy Steps!
Find out how at #iOSCon on 31/3 in London… As the title ever-so-gently suggests, CoreData is a complex framework, offering many pitfalls for the wary and unwary alike, and which cannot be learnt in an afternoon. I’ll explore a strategy to break the task of ‘learning CoreData’ into managable chunks, based on the principle that […]
By Extelligent Cocoa • Frameworks, Teaching Programming • • Tags: #iOSCon, conferences