WWDC 2006 2007 2008 2009 2010 2011 2012 2013 2014
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 Foundation | |
public extension DispatchQueue { | |
private struct _once_Domain: Hashable { | |
/// The unique identifier for the class instance as domain. | |
var identifier: ObjectIdentifier | |
/// A weak reference to the class instance as domain. | |
weak var lifetimeObject: NSObject? |
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 UIKit | |
public extension NSCollectionLayoutAnchor { | |
struct Offset { | |
fileprivate var absolute: CGPoint? | |
fileprivate var fractional: CGPoint? | |
private init(absolute: CGPoint?, fractional: CGPoint?) { | |
self.absolute = absolute | |
self.fractional = fractional |
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 | |
protocol TextFieldDelegate: class { | |
func textFieldDidBecomeFirstResponder(_ textField: TextField) | |
func textFieldDidResignFirstResponder(_ textField: TextField) | |
} | |
class TextField: NSTextField { | |
weak var firstResponderDelegate: TextFieldDelegate? |