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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to