More work.

This commit is contained in:
Pietro Gagliardi 2015-08-07 01:11:55 -04:00
parent 260f619b20
commit 06c88c9d9f
2 changed files with 3 additions and 3 deletions

View File

@ -16,11 +16,11 @@ class tAutoLayoutParams {
}
protocol tControl {
mutating func tSetParent(p: tControl, addToView: NSView, relayout: Bool)
mutating func tSetParent(p: tControl, addToView: NSView)
mutating func tFillAutoLayout(p: tAutoLayoutParams)
mutating func tRelayout()
}
func tAutoLayoutKey(n: UInt) -> String {
func tAutoLayoutKey(n: UIntMax) -> String {
return NSString(format: "view%d", n)
}

View File

@ -29,7 +29,7 @@ class tWindow : tControl {
public func tSetControl(c: tControl) {
self.c = c
self.c.tSetParent(self, view: self.w.contentView)
self.c.tSetParent(self, addToView: self.w.contentView)
self.tRelayout()
}