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.
This tutorial no longers works under xcode 8. These 2 statements are flagged as errors but were not previously.
tableView.setDelegate(self) Value of type 'NSTableView' has no member 'setDelegate'
tableView.setDataSource(self) Value of type 'NSTableView' has no member 'setDataSource'
Google does does not provide an answer as to what has changed and everything that I have tried does not work. Anyone have any ideas on how to fix this ? Maybe a Swift 3.0 issue ?
Thanks that fixed it. Curious why this changed thoughā¦ This project is one that I use for testing all new releases of Xcode that I install and it bothers me when things no longer work.
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.