Re: Swift and KVC


Quincey Morris
 

On Apr 2, 2018, at 19:44 , Marco S Hyman <marc@...> wrote:

Is it me (likely) or is it swift

It’s you, but you can plausibly blame it on Swift.

You need:

extension Foo {
   @objc var name: String {
       return "foo name"
   }
}

(since ‘value(forKey:)’ needs an Obj-C property name).

Join cocoa@apple-dev.groups.io to automatically receive all group messages.