I am trying to set NSWindow (borderless, with no controls) to be transparent 
before I display it (so that I can fade it onto the screen).  Unfortunately, I 
don't seem to be able to - it loads, visibly, then sets the opacity to 0 
(resulting in the window flickering at full opacity, before disappearing and 
then fading into view.  Sure, it's a fast flick - but it's ugly, and not the 
effect that I'm looking for.  Does anyone have any idea how to set opacity to 0 
before displaying the window?

Before we have the discussion about splash screens by the way, I'd just like to 
say 'I agree - I hate them too'.  To justify my actions, this is because the 
app loads into the menu bar, not the dock, and so (in testing) I discovered 
that users thought it hadn't loaded at all.  So, on first load only (unless 
specifically requested otherwise in preferences) a splash is displayed 
informing the user that the app has loaded - and to look up to the menu bar, 
not down to the dock.

- (id)initSplash
{
    if (self = [super initWithWindowNibName:@"SplashScreen"])
    {
        (void) [splashWindow window];
        [splashWindow setAlphaValue:0.0];
        return self;
    }
    
    return nil;
}

_______________________________________________

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to