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 | |
import PlaygroundSupport | |
class TestViewController : UIViewController { | |
let btn: UIButton = { | |
let b = UIButton() | |
b.translatesAutoresizingMaskIntoConstraints = false | |
b.setTitle("Tap Me", for: .normal) | |
b.backgroundColor = .red |
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
// | |
// BonjourPublisher.swift | |
// BonjourTest | |
// | |
// Created by Dov Frankel on 10/12/15. | |
// Copyright © 2015 Dov Frankel. All rights reserved. | |
// | |
import Foundation |
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/Cocoa.h> | |
@interface AppDelegate : NSObject <NSApplicationDelegate> | |
@property (assign) IBOutlet NSWindow *window; | |
@property (weak) IBOutlet NSTextField *filePathField; | |
@property (weak) IBOutlet NSTextField *exportedFilePathField; | |
@property (weak) IBOutlet NSButton *useSecurityScopeCheckBox; | |
@property (weak) IBOutlet NSTextField *expectedPathField; | |
@property (weak) IBOutlet NSTextField *resolvedPathField; |