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

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


References: 
 >AVSimplePlayer in Swift? (From: Charles Jenkins <email@hidden>)

  • Prev by Date: AVSimplePlayer in Swift?
  • Next by Date: Re: NSWindow not redrawing subviews
  • Previous by thread: AVSimplePlayer in Swift?
  • Next by thread: Re: AVSimplePlayer in Swift?
  • Index(es):
    • Date
    • Thread