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?



________________________________
From: Mike Abdullah <cocoa...@mikeabdullah.net>
To: Carlo Gulliani <carlogulli...@yahoo.com>
Cc: Cocoa-dev@lists.apple.com
Sent: Thursday, January 29, 2009 12:13:05 PM
Subject: Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is 
launch. how?


But everything inside the window is an NSView or a derivative. What happens if 
you:

1) Create new window
2) Remove all subviews from the original window's contentView.
3) Add these subviews into the new window's contentView.
4) Dispose of the old window.

On 29 Jan 2009, at 11:38, Carlo Gulliani wrote:

i thought about it, but my app contain webView object, which is loading flash's 
animation. If i close first window and create new window with 
NSTitledWindowMask my flash animation is playing again from first frame.



________________________________
From: Mike Abdullah <cocoa...@mikeabdullah.net>
To: Carlo Gulliani <carlogulli...@yahoo.com>
Cc: Cocoa-dev@lists.apple.com
Sent: Thursday, January 29, 2009 11:12:04 AM
Subject: Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is 
launch. how?

1) Changing the UI like this is almost always a bad idea

2) You can't change the style of a window once launched. But, you can close the 
old window and replace it with a new one in exactly the same location.

Mike.

On 29 Jan 2009, at 10:25, Carlo Gulliani wrote:

> 
> 
> 
> hi, everybody. I have a problem:
> 
> Can I change styleMask when my app already is launch? When app is launching i 
> use NSBorderlessWindowMask, when i press any button i wanna use 
> NSTitledWindowMask?
> 
> 
> 
> _______________________________________________
> 
> 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/cocoadev%40mikeabdullah.net
> 
> This email sent to cocoa...@mikeabdullah.net


      
_______________________________________________

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