Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how?

2009-01-30 Thread Carlo Gulliani
@lists.apple.com Sent: Thursday, January 29, 2009 8:46:22 PM Subject: Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how? this line: [self makeFirstResponder: self]; should probably be: [self makeFirstResponder: view]; this is assuming that self is your window an view

change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how?

2009-01-29 Thread Carlo Gulliani
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

Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how?

2009-01-29 Thread Mike Abdullah
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

Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how?

2009-01-29 Thread Carlo Gulliani
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

Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how?

2009-01-29 Thread Mike Abdullah
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

Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how?

2009-01-29 Thread Carlo Gulliani
: 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

Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how?

2009-01-29 Thread Carlo Gulliani
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

Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how?

2009-01-29 Thread Alexander Spohr
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

Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how?

2009-01-29 Thread Carlo Gulliani
:21 PM Subject: Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how? Maybe just use NSView for your task? - (BOOL)enterFullScreenMode:(NSScreen *)screen withOptions:(NSDictionary*)options atze Am 29.01.2009 um 15:16 schrieb Carlo Gulliani: i understood

Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how?

2009-01-29 Thread douglas welton
8:31:21 PM Subject: Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how? Maybe just use NSView for your task? - (BOOL)enterFullScreenMode:(NSScreen *)screen withOptions: (NSDictionary*)options atze Am 29.01.2009 um 15:16 schrieb Carlo Gulliani: i

Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how?

2009-01-29 Thread Carlo Gulliani
, 2009 11:13:46 PM Subject: Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how? I use -enterFullScreenMode: in several of my application. Because first responder status can change, I make sure that I call [targetWindow makeFirstResponder: targetView] immediately

Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how?

2009-01-29 Thread douglas welton
, January 29, 2009 11:13:46 PM Subject: Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how? I use -enterFullScreenMode: in several of my application. Because first responder status can change, I make sure that I call [targetWindow makeFirstResponder: targetView

Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how?

2009-01-29 Thread Carlo Gulliani
: douglas welton douglas_wel...@earthlink.net To: Carlo Gulliani carlogulli...@yahoo.com Cc: Cocoa-dev@lists.apple.com Sent: Thursday, January 29, 2009 11:46:22 PM Subject: Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how? this line: [self makeFirstResponder: self