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 protected]>
To: Carlo Gulliani <[email protected]>
Cc: [email protected]
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 protected])
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 [email protected]