Re: Draw NSView over QTMovieView

2009-01-20 Thread douglas welton
moving the entire content view may be the equivalent of killing a gnat with a bazooka. ;^) all that may be required is moving the QTMovieView. This is basic stuff supported by NSView's methods like - addSubview: and -removeFromSuperview: (make sure you retain and release appropriately)

Re: Draw NSView over QTMovieView

2009-01-20 Thread Mr. Gecko
thanks, that works. On Jan 20, 2009, at 6:10 PM, Andy Lee wrote: Every window has a top-level view called the content view, explained here: . Everything you put in the window is actually put in

Re: Draw NSView over QTMovieView

2009-01-20 Thread Andy Lee
Every window has a top-level view called the content view, explained here: . Everything you put in the window is actually put into the content view. My idea was to move the content view of one

Re: Draw NSView over QTMovieView

2009-01-20 Thread Mr. Gecko
still can't find out how to move it... On Jan 20, 2009, at 5:20 PM, Andy Lee wrote: Does -[NSWindow setContentView:] not work for the kind of stuff you're doing? Sorry, I don't know much about multimedia stuff. --Andy On Jan 20, 2009, at 6:12 PM, Mr. Gecko wrote: I could do that, but how

Re: Draw NSView over QTMovieView

2009-01-20 Thread Mr. Gecko
Yes that would work for my code. On Jan 20, 2009, at 5:20 PM, Andy Lee wrote: Does -[NSWindow setContentView:] not work for the kind of stuff you're doing? Sorry, I don't know much about multimedia stuff. --Andy On Jan 20, 2009, at 6:12 PM, Mr. Gecko wrote: I could do that, but how can I

Re: Draw NSView over QTMovieView

2009-01-20 Thread Andy Lee
Does -[NSWindow setContentView:] not work for the kind of stuff you're doing? Sorry, I don't know much about multimedia stuff. --Andy On Jan 20, 2009, at 6:12 PM, Mr. Gecko wrote: I could do that, but how can I move the content? On Jan 20, 2009, at 5:10 PM, Andy Lee wrote: How about havin

Re: Draw NSView over QTMovieView

2009-01-20 Thread Mr. Gecko
I could do that, but how can I move the content? On Jan 20, 2009, at 5:10 PM, Andy Lee wrote: How about having two windows with different styles, and moving the content view from one to the other when you switch between fullscreen and regular modes? --Andy On Jan 20, 2009, at 5:40 PM, Mr.

Re: Draw NSView over QTMovieView

2009-01-20 Thread Andy Lee
How about having two windows with different styles, and moving the content view from one to the other when you switch between fullscreen and regular modes? --Andy On Jan 20, 2009, at 5:40 PM, Mr. Gecko wrote: Yeah I tried that but I would like to have the window the same style when it's o

Re: Draw NSView over QTMovieView

2009-01-20 Thread Mr. Gecko
Yeah I tried that but I would like to have the window the same style when it's out of full screen. But you can't change styles as I found out... On Jan 20, 2009, at 3:17 PM, douglas welton wrote: Mr. Gecko, What code are you using to accomplish "fullscreen" mode? if you are using NSView

Re: Draw NSView over QTMovieView

2009-01-20 Thread douglas welton
Mr. Gecko, What code are you using to accomplish "fullscreen" mode? if you are using NSView's -enterFullScreenMode:withOptions: that method is not available on Tiger. Have you considered using a borderless window with a frame that matches the monitor being used for display? This would

Re: Draw NSView over QTMovieView

2009-01-20 Thread Mr. Gecko
Well I'm going to be Tiger and up so I don't know if that's a good idea. On Jan 20, 2009, at 2:57 PM, Matt Long wrote: You can add controls to your View in IB and then use a QTMovieLayer to display your movie (assuming you are Leopard only). Just make sure when you add the QTMovieLayer to yo

Re: Draw NSView over QTMovieView

2009-01-20 Thread Matt Long
You can add controls to your View in IB and then use a QTMovieLayer to display your movie (assuming you are Leopard only). Just make sure when you add the QTMovieLayer to your view's sub-layers that you use - insertSublayer:atIndex passing it an index of zero. This will keep all of the contr

Re: Draw NSView over QTMovieView

2009-01-20 Thread Mr. Gecko
Actually I don't think that would work because it's adding it to the window it self and the window isn't going fullscreen, only my fullscreen NSView is... i could try subclassing QTMovieView sense it's a subclass of NSView and draw my layer on top. Any suggestions? Mr. Gecko On Jan 20, 200

Re: Draw NSView over QTMovieView

2009-01-20 Thread douglas welton
Have you tried to use an overlay (child) window like in the Movie Overlay sample code at the ADC site? Alternately, you have the option of displaying your movie in a QTMovieLayer and adding various sublayers to accomplish the effect you want. On Jan 20, 2009, at 12:58 PM, Mr. Gecko wrote:

Draw NSView over QTMovieView

2009-01-20 Thread Mr. Gecko
Hello, I'm working on adding full screen support to my application, I've got it working but I need to add controls to it and a mouse auto hide (shouldn't be too hard). When I tried to add controls over my movie, I placed it on the top layer in my NSView for going full screen, and it doesn't

Re: NSView over QTMovieView

2008-03-25 Thread Oliver Quas
Hi Joseph, as you see, you can't just add your custom view to the QTMovieView. One solution to your problem would be to add your custom view to a borderless window, and add that window to your NSWindow containing the QTMovieView. Another solution would be to use CoreAnimation and use a QT

NSView over QTMovieView

2008-03-25 Thread Joseph Ayers
I'm working on an application to make measurements on each of the frames of a QTMovie. I have a window with a QTMovieView and a superimposed NSView. When the QTMovieView is offset from the NSView, My app draws to the NSView, but when they are exactly overlaid, I see nothing in the image. In fact