Do Bindings work in Swift?
Do Bindings work in Swift?
- Subject: Do Bindings work in Swift?
- From: Rick Mann <email@hidden>
- Date: Mon, 27 Apr 2015 18:54:44 -0700
In the latest Xcode 6.3.1, I've got an OS X app with a mixture of Objective-C and Swift classes, and a Storyboard-based UI.
I have one table view that's bound through an NSArrayController to an array in an Objective-C class, and it seems to work as desired.
I have another table view that's bound through an NSArrayController to an Obj-C NSViewController subclass, which has a property to a Swift class which has an array property. If I get the binding configuration wrong, I get errors and the window doesn't render its contents. But if I get it right, I get no errors and all the views show up, but the table is empty (however, I know the array is getting .append() called and it's populating).
It seems like the binding isn't working, but I'm not sure.
The Swift class subclasses NSObject.
Thanks for any help!
--
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