Skip to content

Instantly share code, notes, and snippets.

View abbeycode's full-sized avatar

Dov Frankel abbeycode

View GitHub Profile
@abbeycode
abbeycode / TextViewWrap.swift
Created January 3, 2018 23:00
TextViewWrap.swift
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
@abbeycode
abbeycode / BonjourPublisher.swift
Last active January 18, 2019 06:39
A class to facilitate publishing a Bonjour service in Swift
//
// BonjourPublisher.swift
// BonjourTest
//
// Created by Dov Frankel on 10/12/15.
// Copyright © 2015 Dov Frankel. All rights reserved.
//
import Foundation
@abbeycode
abbeycode / AppDelegate.h
Created May 3, 2012 02:21
Document-Scoped Bookmark Resolution Bug
#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;