More work.
This commit is contained in:
parent
260f619b20
commit
06c88c9d9f
|
@ -16,11 +16,11 @@ class tAutoLayoutParams {
|
||||||
}
|
}
|
||||||
|
|
||||||
protocol tControl {
|
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 tFillAutoLayout(p: tAutoLayoutParams)
|
||||||
mutating func tRelayout()
|
mutating func tRelayout()
|
||||||
}
|
}
|
||||||
|
|
||||||
func tAutoLayoutKey(n: UInt) -> String {
|
func tAutoLayoutKey(n: UIntMax) -> String {
|
||||||
return NSString(format: "view%d", n)
|
return NSString(format: "view%d", n)
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,7 +29,7 @@ class tWindow : tControl {
|
||||||
|
|
||||||
public func tSetControl(c: tControl) {
|
public func tSetControl(c: tControl) {
|
||||||
self.c = c
|
self.c = c
|
||||||
self.c.tSetParent(self, view: self.w.contentView)
|
self.c.tSetParent(self, addToView: self.w.contentView)
|
||||||
self.tRelayout()
|
self.tRelayout()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue