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

2009-01-30 Thread Carlo Gulliani
as i understood, when i use full screen app, new NSView component is create. As 
i told i use flash in my app and for test when my app is launched i wait some 
time when my flash's animation will changed and switch app to full screen, i've 
seen that my flash began play again from first frame. I think, when app is 
create new NSView, app hasn't declared all methods from old. so how can i make 
fullscreen, also having kept the old NSView?




From: douglas welton douglas_wel...@earthlink.net
To: Carlo Gulliani carlogulli...@yahoo.com
Cc: Cocoa-dev@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 is the view being 
fullScreen-ed 


  
___

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


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


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


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

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


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

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


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

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


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

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


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

2009-01-29 Thread Alexander Spohr

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 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. Engcwat...@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/atze%40freeport.de

This email sent to a...@freeport.de


---
Alexander Spohr
Freeport  Soliversum

Fax: +49 40 303 757 99
Web: http://www.freeport.de/
Box: http://dropbox.letsfile.com/02145299-4347-4671-aab9-1d3004eac51d
---



___

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


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

2009-01-29 Thread Carlo Gulliani
great thanks!!! i made so and it works, moreover i made so, that my keyboard's 
buttons are works too, but how use Mouse event? I read, that 
enterFullScreenMode override all keyboard's and mouse's events. My subclass of 
NSApplication is listening keyboard events, but i also wanna listen Mouse 
events, because my app use flash file and in full screen mode mouse's event 
doesn't works




From: Alexander Spohr a...@freeport.de
To: Carlo Gulliani carlogulli...@yahoo.com
Cc: Cocoa-dev Mailing List Cocoa-dev@lists.apple.com
Sent: Thursday, January 29, 2009 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 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. Engcwat...@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/atze%40freeport.de
 
 This email sent to a...@freeport.de

---
Alexander Spohr
Freeport  Soliversum

Fax: +49 40 303 757 99
Web: http://www.freeport.de/
Box: http://dropbox.letsfile.com/02145299-4347-4671-aab9-1d3004eac51d
---



___

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


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

2009-01-29 Thread douglas welton
Where did you read that enterFullScreenMode overrides all keyboard and  
mouse events?


That is not true.

If your view needs to respond to keyboard and mouse events, make sure  
that your view is the window's first responder.


regards,

douglas

On Jan 29, 2009, at 2:29 PM, Carlo Gulliani wrote:

great thanks!!! i made so and it works, moreover i made so, that my  
keyboard's buttons are works too, but how use Mouse event? I read,  
that enterFullScreenMode override all keyboard's and mouse's events.  
My subclass of NSApplication is listening keyboard events, but i  
also wanna listen Mouse events, because my app use flash file and in  
full screen mode mouse's event doesn't works





From: Alexander Spohr a...@freeport.de
To: Carlo Gulliani carlogulli...@yahoo.com
Cc: Cocoa-dev Mailing List Cocoa-dev@lists.apple.com
Sent: Thursday, January 29, 2009 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 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. Engcwat...@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/atze%40freeport.de

This email sent to a...@freeport.de


---
Alexander Spohr
Freeport  Soliversum

Fax: +49 40 303 757 99
Web: http://www.freeport.de/
Box: http://dropbox.letsfile.com/02145299-4347-4671-aab9-1d3004eac51d
---



___

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/douglas_welton%40earthlink.net

This email sent to douglas_wel...@earthlink.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


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

2009-01-29 Thread Carlo Gulliani
oh, i don't know what to do,

i wrote so:

NSView *view = [self contentView];
NSDictionary*opts = 
[NSDictionarydictionaryWithObjectsAndKeys:[NSNumbernumberWithBool:YES], 
NSFullScreenModeAllScreens, nil];
[selffadeOut];
[selfmakeFirstResponder: self];
if([view isInFullScreenMode]) [view exitFullScreenModeWithOptions:opts];
else
{
[view enterFullScreenMode:[selfscreen] withOptions:opts];
}
[selffadeIn];

and i haven't result again:(




From: douglas welton douglas_wel...@earthlink.net
To: Carlo Gulliani carlogulli...@yahoo.com
Sent: Thursday, 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] immediately before I set targetView to be 
fullscreen.


  
___

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


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

2009-01-29 Thread douglas welton

this line:

[self makeFirstResponder: self];

should probably be:

[self makeFirstResponder: view];

this is assuming that self is your window an view is the view  
being fullScreen-ed


On Jan 29, 2009, at 3:35 PM, Carlo Gulliani wrote:


oh, i don't know what to do,

i wrote so:

NSView *view = [self contentView];
	NSDictionary *opts = [NSDictionary dictionaryWithObjectsAndKeys: 
[NSNumber numberWithBool:YES], NSFullScreenModeAllScreens, nil];

[self fadeOut];
[self makeFirstResponder: self];
	if ([view isInFullScreenMode]) [view  
exitFullScreenModeWithOptions:opts];

else
{
[view enterFullScreenMode:[self screen] withOptions:opts];
}
[self fadeIn];

and i haven't result again:(

From: douglas welton douglas_wel...@earthlink.net
To: Carlo Gulliani carlogulli...@yahoo.com
Sent: Thursday, 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] immediately before I  
set targetView to be fullscreen.









___

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


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

2009-01-29 Thread Carlo Gulliani
i thought so, but, unfortunately, this hasn't helped((

My xib has window with webView, also it has class of NSWindow

in this class i tried to add up lines, but mouse doesn't work 

i give oneself up to despair

this is full code om my class:

#import WindowDecoration.h

@implementation WindowDecoration

- (BOOL) acceptsMouseMovedEvents
{
returnYES;
}

- (BOOL) canBecomeKeyWindow
{
returnYES;
}

-(void) changeMode
{
[selffadeOut];
NSView *view = [self contentView];
NSDictionary*opts = 
[NSDictionarydictionaryWithObjectsAndKeys:[NSNumbernumberWithBool:YES], 
NSFullScreenModeAllScreens, nil];
if([view isInFullScreenMode]) [view exitFullScreenModeWithOptions:opts];
else
{
[view enterFullScreenMode:[selfscreen] withOptions:opts];
}
[selfmakeFirstResponder: view];
[selffadeIn];
}


- (void)fadeIn
{
CGDisplayFade(tok, 1, kCGDisplayBlendSolidColor, kCGDisplayBlendNormal, 0, 
0, 0, TRUE);
CGReleaseDisplayFadeReservation(tok);
}

- (void)fadeOut
{
CGAcquireDisplayFadeReservation(25, tok);
CGDisplayFade(tok, 1, kCGDisplayBlendNormal, kCGDisplayBlendSolidColor, 0, 
0, 0, TRUE);
}

-(void)dealloc
{
[superdealloc];
}

@end




From: 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];

should probably be:

[self makeFirstResponder: view];

this is assuming that self is your window an view is the view being 
fullScreen-ed


  
___

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