• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how? (From: Carlo Gulliani <email@hidden>)
 >Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how? (From: Mike Abdullah <email@hidden>)
 >Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how? (From: Carlo Gulliani <email@hidden>)
 >Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how? (From: Mike Abdullah <email@hidden>)
 >Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how? (From: Carlo Gulliani <email@hidden>)
 >Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how? (From: "Sean McBride" <email@hidden>)
 >Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how? (From: Carlo Gulliani <email@hidden>)
 >Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how? (From: Alexander Spohr <email@hidden>)
 >Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how? (From: Carlo Gulliani <email@hidden>)
 >Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how? (From: douglas welton <email@hidden>)
 >Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how? (From: Carlo Gulliani <email@hidden>)
 >Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how? (From: douglas welton <email@hidden>)

  • Prev by Date: Serial IO seems to be starving UI
  • Next by Date: Re: bind right part of NSPredicateEditor's row to array of strings
  • Previous by thread: Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how?
  • Next by thread: Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how?
  • Index(es):
    • Date
    • Thread