Trouble binding an NSTextField value in Swift

2014-10-19 Thread Rick Mann
I have a Swift ViewController that has an NSTextField, and a property var port: Port?. Port is an Objective-C class. The text field's value is bound to port.name. Unfortunately, setting port seems to have no effect on the label. I can bind the label to other things (like the view controller's r

Re: Binding an NSTextField

2008-07-04 Thread Mike Abdullah
On 4 Jul 2008, at 06:15, Alex Wait wrote: I have two methods setTheString and theString. They return the value of another NSTextField on my window. In IB I binded the value of the textField to App Controller and the Model Key Path to "theString". theString() is only called when the app fir

Binding an NSTextField

2008-07-03 Thread Alex Wait
I have two methods setTheString and theString. They return the value of another NSTextField on my window. In IB I binded the value of the textField to App Controller and the Model Key Path to "theString". theString() is only called when the app first starts up. How come the binding doesn't fire