• 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
Re: Bindings in Swift
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bindings in Swift


  • Subject: Re: Bindings in Swift
  • From: Quincey Morris <email@hidden>
  • Date: Sat, 09 Aug 2014 13:35:53 -0700

On Aug 9, 2014, at 09:48 , Gerriet M. Denkmann <email@hidden> wrote:

> Are bindings supposed to work in Swift?

I haven’t played with them at all, yet, but they have to work (eventually, even if not yet), or interoperability couldn’t work. But …

1. Don’t forget to mark your observable methods and properties as ‘dynamic’ (new in the latest beta).

Now that I think about it, though, I hate this “enhancement”. It turns something that’s relatively simple to use (bindings or KVO) into something that’s obscure for Cocoa newbies, and gives us one more housekeeping task to forget, even if we’re newbies.

2. Is your class a subclass of NSObject? If not, or maybe even if so, you have name-mangling and namespace (i.e. module name) issues to be wary of.

3. You could try getting Xcode to generate the Obj-C bridging header and see what it says about your class from an Obj-C perspective.
_______________________________________________

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: Bindings in Swift
      • From: Roland King <email@hidden>
  • Prev by Date: Re: Does NSPointerArray support zeroing weak references under ARC
  • Next by Date: Re: NSNumberFormatter negative and NSWindowsLatin1
  • Previous by thread: Re: Does NSPointerArray support zeroing weak references under ARC
  • Next by thread: Re: Bindings in Swift
  • Index(es):
    • Date
    • Thread