• 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
QTMovieView - control-click vs. right-click give different behavior?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

QTMovieView - control-click vs. right-click give different behavior?


  • Subject: QTMovieView - control-click vs. right-click give different behavior?
  • From: "John C. Daub" <email@hidden>
  • Date: Wed, 24 Jun 2009 14:50:35 -0500
  • Thread-topic: QTMovieView - control-click vs. right-click give different behavior?

Hello.

I am using a QTMovieView to play back a movie. I wish for there to be no
chance of user interaction with the movie: pure playback. The behavior is
window shows, movie auto-plays (QTMovieView takes up the whole of the window
content area), when movie is done the window closes.

I noticed if I clicked on the movie that it would stop the playback. I
didn't want this. So I subclassed QTMovieView and added empty overrides for:

-mouseDown:
-rightMouseDown:
-otherMouseDown:
-mouseUp:
-rightMouseUp:
-otherMouseUp:
-scrollWheel:

The methods are totally stubbed out, they are empty and do nothing. This
does seem to stop any sort of user interaction. FWIW, I have also set the
view to be not editable, disabled, no playback controls.

But I noticed an interesting thing.

If I right-click, there's no contextual playback menu displayed. But if I
control-(left) click, the playback menu is displayed.

How is this happening? How is it that I have stubbed out all of the various
mouse methods yet a control-click gets through?  And how can I get it to
stop?

As well, are there any other subtle user-interaction approaches that I may
need to add to my stub-out list?

Thank you.

--
John C. Daub }:-)>=
<mailto:email@hidden> <http://www.hsoi.com/hsoi/blog/>
"History shows that when government gains the power to monitor the actions
of the people, it inevitably uses that power in harmful ways." -- Ron Paul



_______________________________________________

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

  • Follow-Ups:
    • Re: QTMovieView - control-click vs. right-click give different behavior?
      • From: "John C. Daub" <email@hidden>
  • Prev by Date: Re: Placing an image in the border of NSTextView
  • Next by Date: Re: Cocoa and email (SMTP/POP3)
  • Previous by thread: Re: Placing an image in the border of NSTextView
  • Next by thread: Re: QTMovieView - control-click vs. right-click give different behavior?
  • Index(es):
    • Date
    • Thread