Skip to content

Commit 317caa9

Browse files
committed
Define a read-write tag attribute.
1 parent 79add95 commit 317caa9

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Sources/Knob-macOS/Knob.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,13 @@ open class Knob: NSControl {
136136
override public var wantsUpdateLayer: Bool { true }
137137
override public var isFlipped: Bool { true }
138138

139+
override public var tag: Int {
140+
get { tag_ }
141+
set { tag_ = newValue }
142+
}
143+
144+
private var tag_: Int = -1
145+
139146
/**
140147
Construction from an encoded representation.
141148

0 commit comments

Comments
 (0)