Last active
October 30, 2017 03:09
-
-
Save erica/49bffd706397963946dc40c628fae006 to your computer and use it in GitHub Desktop.
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
//: Playground - noun: a place where people can play | |
import Cocoa | |
let url = NSURL(string:"http://ericasadun.com")! | |
let pasteboard = NSPasteboard.general | |
pasteboard.clearContents() | |
pasteboard.writeObjects([url, url.absoluteString as! NSPasteboardWriting]) | |
print(pasteboard.types) | |
Optional([__ObjC.NSPasteboard.PasteboardType(_rawValue: public.url), __ObjC.NSPasteboard.PasteboardType(_rawValue: CorePasteboardFlavorType 0x75726C20), __ObjC.NSPasteboard.PasteboardType(_rawValue: dyn.ah62d4rv4gu8yc6durvwwaznwmuuha2pxsvw0e55bsmwca7d3sbwu), __ObjC.NSPasteboard.PasteboardType(_rawValue: Apple URL pasteboard type), __ObjC.NSPasteboard.PasteboardType(_rawValue: public.utf8-plain-text), __ObjC.NSPasteboard.PasteboardType(_rawValue: NSStringPboardType)]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment