Re: Text over NSMovieView
Re: Text over NSMovieView
- Subject: Re: Text over NSMovieView
- From: "John C. Randolph" <email@hidden>
- Date: Tue, 15 Mar 2005 21:57:21 -0800
On Mar 15, 2005, at 4:25 PM, Eric Blanpied wrote:
I need to make a quick little cocoa app that displays changing text
(can't
be pre-rendered) over a movie. I've considered a wired movie with a
text
track, except that there are a number of other playback constraints
that
will require a custom player.
The trouble is that NSMovieView appears to plaster itself in front of
whatever else is stacked up with it, regardless of layering. This
isn't too
surprising, but I thought I'd ask around to see if there are any
known ways
to accomplish what I'm looking for.
Sounds like a job for an overlay window.
See the "RoundTransparentWindow" example at:
http://developer.apple.com/samplecode/RoundTransparentWindow/
RoundTransparentWindow.html
to learn how to make a borderless window.
Use the -addChildWindow:ordered: method of NSWindow to attach it to
the window where your movie view resides.
(Disregard the FunkyOverlayWindow example, it's rather out of date.)
-jcr
John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
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