• 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: lion/mt. lion: preventing qtmovieview from taking key strokes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lion/mt. lion: preventing qtmovieview from taking key strokes


  • Subject: Re: lion/mt. lion: preventing qtmovieview from taking key strokes
  • From: Matthew Weinstein <email@hidden>
  • Date: Tue, 18 Sep 2012 10:53:13 -0700

So problem solved by having a subclass of QTMovieView check in overridden performKeyEquivalent: whether it's firstResponder and returning NO if it isn't and passing to super if it is.

On Sep 15, 2012, at 4:28 PM, Eric Wing wrote:

> On 9/15/12, Matthew Weinstein <email@hidden> wrote:
>> Dear programmers,
>> I have a window with a nstextview and a qtmovieview.. The problem is that
>> the movieview steals all of the keystrokes so the left and right arrow keys
>> never make it to the nstextview. I have tried subclassing qtmovieview and
>> capturing keydown and keyup, but that didn't work... Has any one found a way
>> to prevent keystrokes from going to the movieview or how do I redirect
>> them?
>>
> I don't know about this one, but QTMovieView has given me many
> problems over the years. And in my opinion, the writing is on the wall
> that QTKit's days are over.
>
> I think you may be better off moving to AVFoundation and put an
> AVPlayerLayer in a host NSView. Then you should be able to make the
> host NSView do anything you want. (Presumably, you could also do the
> same with a QTMovieLayer, but I reiterate, I think QTKit isn't a good
> thing for new code moving forward.)
>
> -Eric
> --
> Beginning iPhone Games Development
> http://playcontrol.net/iphonegamebook/


_______________________________________________

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: 
 >lion/mt. lion: preventing qtmovieview from taking key strokes (From: Matthew Weinstein <email@hidden>)
 >Re: lion/mt. lion: preventing qtmovieview from taking key strokes (From: Eric Wing <email@hidden>)

  • Prev by Date: window errors
  • Next by Date: Scrolling and zooming QTMovieLayer
  • Previous by thread: Re: lion/mt. lion: preventing qtmovieview from taking key strokes
  • Next by thread: What happened to NSDocument's changeCount?
  • Index(es):
    • Date
    • Thread