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

Reply via email to