From: masakih Date: Mon, 13 Aug 2018 13:37:48 +0000 (+0900) Subject: NSIndexSet -> IndexSet X-Git-Url: http://git.osdn.net/view?p=kcd%2FKCD.git;a=commitdiff_plain;h=0f87b4e9a9fa334b4d8db1fe7ccabd44ccc87f4f NSIndexSet -> IndexSet --- diff --git a/KCD/ScreenshotListViewController.swift b/KCD/ScreenshotListViewController.swift index 127f4788..1a5bc1ee 100644 --- a/KCD/ScreenshotListViewController.swift +++ b/KCD/ScreenshotListViewController.swift @@ -147,7 +147,7 @@ final class ScreenshotListViewController: NSViewController { let info = ScreenshotInformation(url: url) self.screenshotsController.insert(info, atArrangedObjectIndex: 0) - let set: Set = [NSIndexPath(forItem: 0, inSection: 0) as IndexPath] + let set: Set = [IndexPath(item: 0, section: 0)] self.collectionView.selectionIndexPaths = set self.collectionView.scrollToItems(at: set, scrollPosition: .nearestHorizontalEdge) @@ -221,7 +221,7 @@ final class ScreenshotListViewController: NSViewController { self.screenshots.screenshots = screenshots - self.collectionView.selectionIndexPaths = [NSIndexPath(forItem: 0, inSection: 0) as IndexPath] + self.collectionView.selectionIndexPaths = [IndexPath(item: 0, section: 0)] self.reloadHandler?() }