Trouble binding an NSTextField value in Swift
Trouble binding an NSTextField value in Swift
- Subject: Trouble binding an NSTextField value in Swift
- From: Rick Mann <email@hidden>
- Date: Sun, 19 Oct 2014 02:49:28 -0700
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 representedObject.description) and it works. But I can't seem to bind to my port property.
Is there something in this situation that doesn't work?
--
Rick Mann
email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden