• 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: QTMovieView in a split view - very weird stuff (SOLVED - oddly)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: QTMovieView in a split view - very weird stuff (SOLVED - oddly)


  • Subject: RE: QTMovieView in a split view - very weird stuff (SOLVED - oddly)
  • From: Keith Blount <email@hidden>
  • Date: Thu, 25 Aug 2005 10:26:06 -0700 (PDT)

I managed to fix this behaviour, though I'm still
unsure as to why it should have occurred in the first
place.

All of my views were contained in a tabless tab view,
because I have four main view modes in my app. Upon
loading the main window controller, I was setting this
tab view as the content view of the window using
NSWindow's -setContentView:. It was this that was
causing the weird QTMovieView movie resizing
behaviour. When I changed it so that my tab view was
just a subview of the default content view, everything
worked fine. I don't really understand what difference
setting the tab view as the window's content view
should make - but doing so caused the movie to try to
resize to the height of the whole tab view/content
view. Whether or not this is expected behaviour is
beyond me - there's nothing to indicate so in the
documentation on -setContentView: or QTMovieView - but
at least it had an easy fix (even though it took me
hours to find...).

--- ORIGINAL MESSAGE ---

Hi,

I have a QTMovieView at the bottom of a horizontal
split view. I have just noticed that when opening some
movies, they get drawn very weirdly. What happens is
that the movie gets placed at the top of the split
view - ie. drawn over the top of the table view that I
have at the top of my split view. If I resize the
split view, the movie gets resized correctly - as
though it is sizing to fit into the bottom part of the
split view - but it remains fixed to the top of view.
*Very odd.* The controller view and the background all
stay in the right place at the bottom of the split
view - it's only the movie itself that gets drawn in
completely the wrong position.

At the moment, this just seems to happen with certain
MPG files - MOV files seem fine.

I think it might have something to do with my set up,
though I can't see where. I tested in a clean project
with a simple movie view and the same movie in a split
view, and it worked fine. In my project, though,
because I have a lot of different views to deal with,
I swap in my movie view using replaceSubview:with:
when it is required. All the same, I can't see why
this would make a difference when some movies work
fine and all other views I swap in using this method
also get drawn fine.

Does anybody have any idea what is happening here? It
is as though the movie itself is getting its Y origin
screwed up...

Many thanks in advance for any ideas,
Keith

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: beginSheet simple question.
  • Next by Date: Re: Custom Title bars
  • Previous by thread: Key Bindings: determine if a key is already set
  • Next by thread: Need help in setting up an NSTevtView in an overlay window
  • Index(es):
    • Date
    • Thread