You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

15 lines
368 B

// Copyright © 2015 Abhishek Banthia
import Cocoa
class HourMarkerViewItem: NSCollectionViewItem {
@IBOutlet var hourLabel: NSTextField!
func setup(with indexPath: IndexPath) {
hourLabel.stringValue = "\(indexPath.item):00"
if indexPath.item == 2 {
highlightState = .forSelection
isSelected = true
}
}
}