Re: Swift and KVC

Marco S Hyman

You need:

extension Foo {
@objc var name: String {
return "foo name"
(since ‘value(forKey:)’ needs an Obj-C property name).
Many, many thanks. One curiosity, though... that works in my application but I still get no output in the Playground sample code.


Join to automatically receive all group messages.