As soon as I drag a checkbox into a column, the table changes to a cell based table instead of a view based table, which then wipes out all the data bindings I had set. How do I put a checkbox into a view based table and still use Cocoa Bindings?
Thanks for this great tutorial. There is a bug: currently you are returning creation date rather than modification date. Substituting NSURLContentModificationDateKey for NSURLCreationDateKey in public init( folderURL:NSURL ) seems to fix it (it has to be changed in the let declaration of requiredAttributes as well as in the date:properties assignment. Works for me–or you could change the column field to “Creation Date” if you prefer to show creation dates.
If you have an elegant way to change the dates to local with the short date format, I’d love to see it.
One of the proposals of Swift 3 was to make function arguments more consistent (in Swift 2 the first argument’s treated a little differently to the others; in Swift 3 it isn’t). In this case the newer version might’ve looked something like this:
In Objective C, setting properties was an alias for the equivalent setProperty function. In Swift 3 it looks like they’ve just decided to acknowledge properties and remove the setProperty equivalents. (I’m speculating.)
This is a really good tutorial. Looking deeper into the starter project I see there is a lot of code you already had set up. It would be much appreciated if you could do a full tutorial, or go back and teach what you did prior.