Diff
checker
Text
Text
Images
Documents
Excel
Folders
Legal
Enterprise
Desktop
Pricing
Sign in
Download Diffchecker Desktop
Compare text
Find the difference between two text files
Tools
History
Real-time editor
Hide unchanged lines
Disable line wrap
Layout
Split
Unified
Diff precision
Smart
Word
Char
Syntax highlighting
Choose syntax
Ignore
Transform text
Go to first change
Edit input
Diffchecker Desktop
The most secure way to run Diffchecker. Get the Diffchecker Desktop app: your diffs never leave your computer!
Get Desktop
SO answer 48935567 vs 62549061 (re-adding whitespace)
Created
6 years ago
Diff never expires
Clear
Export
Share
Explain
5 removals
Lines
Total
Removed
Characters
Total
Removed
To continue using this feature, upgrade to
Diff
checker
Pro
View Pricing
19 lines
Copy
0 additions
Lines
Total
Added
Characters
Total
Added
To continue using this feature, upgrade to
Diff
checker
Pro
View Pricing
14 lines
Copy
Copy
Copied
Copy
Copied
import Cocoa
@IBDesignable
@objc(BCLDisablableScrollView)
public class DisablableScrollView: NSScrollView {
public class DisablableScrollView: NSScrollView {
@IBInspectable
@IBInspectable
Copy
Copied
Copy
Copied
@objc(enabled)
public var isEnabled: Bool = true
public var isEnabled: Bool = true
public override func scrollWheel(with event: NSEvent) {
public override func scrollWheel(with event: NSEvent) {
if isEnabled {
if isEnabled {
super.scrollWheel(with: event)
super.scrollWheel(with: event)
}
}
else {
else {
nextResponder?.scrollWheel(with: event)
nextResponder?.scrollWheel(with: event)
}
}
}
}
}
}
Saved diffs
Original text
Open file
import Cocoa @IBDesignable @objc(BCLDisablableScrollView) public class DisablableScrollView: NSScrollView { @IBInspectable @objc(enabled) public var isEnabled: Bool = true public override func scrollWheel(with event: NSEvent) { if isEnabled { super.scrollWheel(with: event) } else { nextResponder?.scrollWheel(with: event) } } }
Changed text
Open file
public class DisablableScrollView: NSScrollView { @IBInspectable public var isEnabled: Bool = true public override func scrollWheel(with event: NSEvent) { if isEnabled { super.scrollWheel(with: event) } else { nextResponder?.scrollWheel(with: event) } } }
Find difference