• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Do Bindings work in Swift?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Do Bindings work in Swift?
      • From: Charles Srstka <email@hidden>
  • Prev by Date: Sketch TNG Code?
  • Next by Date: Re: Do Bindings work in Swift?
  • Previous by thread: Re: Sketch TNG Code?
  • Next by thread: Re: Do Bindings work in Swift?
  • Index(es):
    • Date
    • Thread