[swift-users] Swift 3.0
dennis at dennisweissmann.me
Sun Apr 17 14:36:30 CDT 2016
This solved my different but related issue on iOS:
Taking the standard template for a Master-Detail Application with Core Data and making all the changes so that it compiles, leads to NSFetchedResultsControllerDelegate’s controller(_:didChange:at:for:newIndexPath:) function not being called.
Adding @objc(controller:didChangeObject:atIndexPath:forChangeType:newIndexPath:) makes it get called. Fantastic!
> On Apr 17, 2016, at 9:09 PM, Brent Royal-Gordon <brent at architechies.com> wrote:
>> The app builds fine. Running the app gives me errors such as "Must implement numberOfRowsInTableView: and tableView:objectValueForTableColumn:row:” when the swiftified version "numberOfRows(in tableView: NSTableView) -> Int” and the required methods to support a view based table exist -- unless I got them wrong.
> You may need to give the Objective-C versions of the method names in @objc(foo) attributes.
> Brent Royal-Gordon
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-users