From 63df1b8e16be2532cfaf9b9de4ed239b905097b6 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Fri, 7 Aug 2015 01:28:26 -0400 Subject: [PATCH] More work. --- redo/osxaltest/window.swift | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/redo/osxaltest/window.swift b/redo/osxaltest/window.swift index d7888e8c..d0bc9d63 100644 --- a/redo/osxaltest/window.swift +++ b/redo/osxaltest/window.swift @@ -4,7 +4,7 @@ import Cocoa // auto layout helpers func tIsAmbiguous(view: NSView, indent: Int) { var s = string(indent, ' ') - println("\(s) \(view.className) \(view.hasAmbiguousLayout)") + debugPrint("\(s) \(view.className) \(view.hasAmbiguousLayout)") if view.hasAmbiguousLayout { view.window.visualizeConstraints(view.superview.constraints) } @@ -25,6 +25,8 @@ class tWindow : tControl { backing: NSBackingStoreBuffered, defer: true) self.w.title = "Auto Layout Test" + self.c = nil + self.margined = false } public func tSetControl(c: tControl) { @@ -44,6 +46,14 @@ class tWindow : tControl { tIsAmbiguous(self.w.contentView, 0) } + func tSetParent(p: tControl, addToView: NSView) { + fatalError("cannot call tWindow.tSetParent()") + } + + func tFillAutoLayout(p: tAutoLayoutParams) { + fatalError("cannot call tWindow.tFillAutoLayout()") + } + public func tRelayout() { if self.c == nil { return