i understood and solved it, but both windows i need for switching between normal mode and full screen mode. I have 2 buttons for switching and the best way to create method which will to create new window, than remove old window and rewrite old window new window, and after removing nev window reference:
BOOL isFullScreen; NSWindow *oldWindow; -(IBAction) changeToFullScreen:(id)sender { isFullScreen = TRUE; [self changeMode]; } -(IBAction) changeToNormalScreen:(id)sender { isFullScreen = FALSE; [self changeMode]; } -(void) changeMode { if (isFullScreen) unsigned int style = NSTitledWindowMask | ...; else unsigned int style = NSBorderlessWindowMask; NSWindow *newWindow = ... // here we're creating new window with styleMask:style... [newWindow setContentView:...]; oldWindow = newWindow; [newWindow autorelease]; } any ideas? ________________________________ From: Sean McBride <cwat...@cam.org> To: Carlo Gulliani <carlogulli...@yahoo.com>; Mike Abdullah <cocoa...@mikeabdullah.net> Cc: Cocoa-dev@lists.apple.com Sent: Thursday, January 29, 2009 1:19:18 PM Subject: Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how? Carlo Gulliani (carlogulli...@yahoo.com) on 2009-01-29 7:28 AM said: >thanks, i'll try it, if i understood correctly, i should "copy" my all >subviews to new window, and remove all subviews from old window, but i >don't understand how can i save current time in my flash, but if i >copied subview i think it will start from 1st frame? can you show me a >part of code which add new subview to new window from old? <http://www.cocoabuilder.com/archive/message/cocoa/2008/5/14/206531> BTW, please file a bug requesting the ability to change an already- visible window to NSBorderlessWindowMask. It would make these things easier for sure. -- ____________________________________________________________ Sean McBride, B. Eng cwat...@cam.org Mac Software Designer Montréal, Québec, Canada _______________________________________________ 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