This file contains 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
import AppKit | |
import PlaygroundSupport | |
let tableViewFrame = NSRect(x: 0, y: 0, width: 250, height: 500) | |
class TableViewController: NSViewController { | |
let tableView: NSTableView = { | |
let tableView = NSTableView() | |
// By default a tableview has column spacing. We only have |
This file contains 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
import Cocoa | |
import PlaygroundSupport | |
class BackgroundView: NSView { | |
override func draw(_ dirtyRect: NSRect) { | |
NSColor.underPageBackgroundColor.set() | |
dirtyRect.fill() | |
} | |
} |
This file contains 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
TOKEN is from ADCDownloadAuth cookie (get it from web inspector storage) | |
URL is resolved file url on the CDN download.developer.apple.com | |
wget -x --header "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" \ | |
--header "Upgrade-Insecure-Requests: 1" \ | |
--header "Cookie: ADCDownloadAuth={TOKEN}" \ | |
--header "User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 10_1 like Mac OS X) AppleWebKit/602.2.14 (KHTML, like Gecko) Version/10.0 Mobile/14B72 Safari/602.1" \ | |
--header "Accept-Language: en-us" "{URL}" |