Re: Translating KVO-ed property to Swift
Re: Translating KVO-ed property to Swift
- Subject: Re: Translating KVO-ed property to Swift
- From: Quincey Morris <email@hidden>
- Date: Mon, 17 Apr 2017 01:52:27 -0700
On Apr 17, 2017, at 01:43 , Jean-Daniel <email@hidden> wrote:
>
> var version: String? {
A slight correction: this declaration actually must be:
> dynamic var version: String? {
otherwise KVO isn’t guaranteed to work in Swift.
_______________________________________________
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