I've done those things already in my experimentation. Trouble is, my window is for a different window controller - not Application Delegate - and the window loads when the class does. Show Window On Launch doesn't seem to make any difference. On 16 Jun 2013, at 09:33, Michael Starke <michael.sta...@hicknhack-software.com> wrote:
> I'm using the same effect in my application. > > The problem is, if you use this method, the window might not be there yet. > Did you inspect if the window iVar is actually not nil? > The way I did it is using the windowDidLoad method and call > > -(void)windowDidLoad { > [super windowDidLoad] > [splashWindow setAlphaValue:0.0]; > } > > Works find for me. Code is here: > https://github.com/mstarke/MacPass/blob/master/MacPass/MPOverlayWindowController.m > > -Michael > > On 16.06.2013, at 10:22, Pax <45rpmli...@googlemail.com> wrote: > >> 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/michael.starke%40hicknhack-software.com >> >> This email sent to michael.sta...@hicknhack-software.com > > > ___m i c h a e l s t a r k e____ > geschäftsführer > HicknHack Software GmbH > www.hicknhack-software.com > > ___k o n t a k t____ > +49 (170) 3686136 > cont...@hicknhack.com > > ___H i c k n H a c k S o f t w a r e G m b H____ > geschäftsführer - maik lathan | andreas reischuck | michael starke > bayreuther straße 32 > 01187 dresden > amtsgericht dresden HRB 30351 > sitz - dresden > > > _______________________________________________ > > 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/45rpmlists%40googlemail.com > > This email sent to 45rpmli...@googlemail.com _______________________________________________ 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