• 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: Draw NSView over QTMovieView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Draw NSView over QTMovieView


  • Subject: Re: Draw NSView over QTMovieView
  • From: Andy Lee <email@hidden>
  • Date: Tue, 20 Jan 2009 19:10:49 -0500

Every window has a top-level view called the content view, explained here: <http://developer.apple.com/documentation/Cocoa/Conceptual/WinPanel/Concepts/HowWindowsWork.html >.

Everything you put in the window is actually put into the content view. My idea was to move the content view of one window into the other window.

For example, if you're switching to fullscreen mode, it would be something like:

NSView *contentView = [[[regularWindow contentView] retain] autorelease];
[regularWindow setContentView:nil];
[fullscreenWindow setContentView:contentView];


I'm not sure if you really have to remove the content view from one window to move it to the other -- it just seems safer to do so.

--Andy


On Jan 20, 2009, at 6:58 PM, Mr. Gecko wrote:

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 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




_______________________________________________

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: Draw NSView over QTMovieView
      • From: "Mr. Gecko" <email@hidden>
References: 
 >Draw NSView over QTMovieView (From: "Mr. Gecko" <email@hidden>)
 >Re: Draw NSView over QTMovieView (From: douglas welton <email@hidden>)
 >Re: Draw NSView over QTMovieView (From: "Mr. Gecko" <email@hidden>)
 >Re: Draw NSView over QTMovieView (From: Matt Long <email@hidden>)
 >Re: Draw NSView over QTMovieView (From: "Mr. Gecko" <email@hidden>)
 >Re: Draw NSView over QTMovieView (From: douglas welton <email@hidden>)
 >Re: Draw NSView over QTMovieView (From: "Mr. Gecko" <email@hidden>)
 >Re: Draw NSView over QTMovieView (From: Andy Lee <email@hidden>)
 >Re: Draw NSView over QTMovieView (From: "Mr. Gecko" <email@hidden>)
 >Re: Draw NSView over QTMovieView (From: Andy Lee <email@hidden>)
 >Re: Draw NSView over QTMovieView (From: "Mr. Gecko" <email@hidden>)

  • Prev by Date: Re: Draw NSView over QTMovieView
  • Next by Date: Re: Observing edits make to a table using bindings
  • Previous by thread: Re: Draw NSView over QTMovieView
  • Next by thread: Re: Draw NSView over QTMovieView
  • Index(es):
    • Date
    • Thread