Re: lion/mt. lion: preventing qtmovieview from taking key strokes
Re: lion/mt. lion: preventing qtmovieview from taking key strokes
- Subject: Re: lion/mt. lion: preventing qtmovieview from taking key strokes
- From: Eric Wing <email@hidden>
- Date: Sat, 15 Sep 2012 16:28:38 -0700
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