• R/O
  • HTTP
  • SSH
  • HTTPS

KCD: Commit

main code repository.


Commit MetaInfo

Revision0f87b4e9a9fa334b4d8db1fe7ccabd44ccc87f4f (tree)
Time2018-08-13 22:37:48
Authormasakih <masakih@user...>
Commitermasakih

Log Message

NSIndexSet -> IndexSet

Change Summary

Incremental Difference

--- a/KCD/ScreenshotListViewController.swift
+++ b/KCD/ScreenshotListViewController.swift
@@ -147,7 +147,7 @@ final class ScreenshotListViewController: NSViewController {
147147 let info = ScreenshotInformation(url: url)
148148
149149 self.screenshotsController.insert(info, atArrangedObjectIndex: 0)
150- let set: Set<IndexPath> = [NSIndexPath(forItem: 0, inSection: 0) as IndexPath]
150+ let set: Set<IndexPath> = [IndexPath(item: 0, section: 0)]
151151 self.collectionView.selectionIndexPaths = set
152152
153153 self.collectionView.scrollToItems(at: set, scrollPosition: .nearestHorizontalEdge)
@@ -221,7 +221,7 @@ final class ScreenshotListViewController: NSViewController {
221221
222222 self.screenshots.screenshots = screenshots
223223
224- self.collectionView.selectionIndexPaths = [NSIndexPath(forItem: 0, inSection: 0) as IndexPath]
224+ self.collectionView.selectionIndexPaths = [IndexPath(item: 0, section: 0)]
225225
226226 self.reloadHandler?()
227227 }
Show on old repository browser