Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how?
Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how?
- Subject: Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how?
- From: douglas welton <email@hidden>
- Date: Thu, 29 Jan 2009 15:46:22 -0500
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:
ohhhhh, 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 <email@hidden>
To: Carlo Gulliani <email@hidden>
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 (email@hidden)
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:
This email sent to email@hidden