Skip to content

Commit

Permalink
Merge pull request #15 from JoeyBodnar/chore/fix-copy-paste
Browse files Browse the repository at this point in the history
Fix copy/paste
  • Loading branch information
JoeyBodnar authored Jun 27, 2020
2 parents d3e851b + c708968 commit 469c149
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
Binary file not shown.
9 changes: 8 additions & 1 deletion Galileo/Views/CommentTextBoxCell/CommentTextBoxCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,15 @@ protocol CommentTextBoxDelegate: AnyObject {
func commentTextBoxCell(_ commentTextBox: CommentTextBoxCell, didSelectCancel comment: Comment)
}

final class CommentBoxTextView: NSTextView {

override func preferredPasteboardType(from availableTypes: [NSPasteboard.PasteboardType], restrictedToTypesFrom allowedTypes: [NSPasteboard.PasteboardType]?) -> NSPasteboard.PasteboardType? {
return NSPasteboard.PasteboardType.string
}
}

final class CommentTextBoxCell: NSTableCellView {
@IBOutlet weak var textView: NSTextView!
@IBOutlet weak var textView: CommentBoxTextView!
@IBOutlet weak var cancelButton: GreyButton!
@IBOutlet weak var submitButton: ControlAccentColorButton!
@IBOutlet weak var indicator: NSActivityIndicator!
Expand Down
8 changes: 4 additions & 4 deletions Galileo/Views/CommentTextBoxCell/CommentTextBoxCell.xib
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="16096" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="16097" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
<dependencies>
<deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="16096"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="16097"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
Expand All @@ -19,7 +19,7 @@
<rect key="frame" x="0.0" y="0.0" width="661" height="130"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<textView importsGraphics="NO" richText="NO" verticallyResizable="YES" spellingCorrection="YES" smartInsertDelete="YES" id="rWO-BD-pMC">
<textView importsGraphics="NO" richText="NO" verticallyResizable="YES" spellingCorrection="YES" smartInsertDelete="YES" id="rWO-BD-pMC" customClass="CommentBoxTextView" customModule="Galileo" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="661" height="130"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
Expand Down Expand Up @@ -87,7 +87,7 @@
<outlet property="cancelButton" destination="3C7-T2-twX" id="6z1-Wj-jfS"/>
<outlet property="indicator" destination="a40-17-Gjd" id="EfR-DY-Xqp"/>
<outlet property="submitButton" destination="zs1-TC-fE2" id="NDL-gQ-GJM"/>
<outlet property="textView" destination="rWO-BD-pMC" id="NFi-ba-Pzd"/>
<outlet property="textView" destination="rWO-BD-pMC" id="dXc-RL-A1w"/>
</connections>
<point key="canvasLocation" x="390.5" y="196.5"/>
</tableCellView>
Expand Down

0 comments on commit 469c149

Please sign in to comment.