This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class SourceListTableCellView: NSTableCellView { | |
| override var draggingImageComponents: [NSDraggingImageComponent] { | |
| let components = super.draggingImageComponents | |
| guard | |
| self.backgroundStyle == .emphasized, //emphasized = selected | |
| let textField = self.textField, | |
| let newStyle = textField.attributedStringValue.mutableCopy() as? NSMutableAttributedString, | |
| let labelIndex = components.firstIndex(where: { $0.key == .label }) | |
| else { | |
| return components |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --indent 4 | |
| --self insert | |
| --extensionacl on-declarations | |
| --modifierorder required,dynamic,override,public,private,private(set),lazy | |
| --ranges no-space | |
| --patternlet inline | |
| --disable consecutiveBlankLines, strongOutlets, blankLinesAroundMark, unusedArguments | |
| --disable spaceInsideComments, redundantParens, andOperator, consecutiveSpaces, redundantReturn | |
| --disable indent, redundantNilInit, redundantType, redundantObjc, enumNamespaces |
OlderNewer