Re: AVSimplePlayer in Swift?
Re: AVSimplePlayer in Swift?
- Subject: Re: AVSimplePlayer in Swift?
- From: Charles Srstka <email@hidden>
- Date: Fri, 06 Jan 2017 21:45:03 -0600
> On Jan 6, 2017, at 9:32 PM, Charles Jenkins <email@hidden> wrote:
>
> - If I imitate the ObjC version and try to do the bindings in IB, the
> time slider’s maxValue and value bindings don’t work (won’t compile)
> because duration and currentTime are not NSNumbers.
They don’t have to be NSNumbers; KVO automatically wraps primitive number types in NSNumbers for you. What do you mean by “won’t compile”? IB and KVO all occur at runtime, not compile-time.
Anyway, the thing to make sure about is that you’ve declared all KVO-compliant properties with the ‘dynamic’ keyword. If you haven’t, that could easily account for things not working properly.
Charles
_______________________________________________
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