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: Carlo Gulliani <email@hidden>
- Date: Thu, 29 Jan 2009 23:10:26 -0800 (PST)
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 <email@hidden>
To: Carlo Gulliani <email@hidden>
Cc: email@hidden
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 (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