Sounds like your window is initially visible before it's had its alpha set; try turning off "visible at launch" in the nib.
On Nov 7, 2011, at 12:04 PM, Chris Paveglio wrote: > I have a custom about box, and it's sort of like Adobe apps, where it's not a > traditional window but a graphic/image I made that is a shape like a hexagon > with a drop shadow. > It works fine and I can call it and I disable the window background by > setting the window alpha to 0.999. > One little tiny issue is that when I invoke the about box, for just a > millisecond I sort of see the window bounds and background, and then it goes > away. The second time I show the about box the blink of background window is > not present. > Is there some way to not have that flash happen the first time? I'm not doing > anything in init or awakeFromNib, only this: > > -(IBAction)showAboutWindow:(id)sender > { > if(!aboutWindow) > [NSBundleloadNibNamed:@"AboutWindow"owner:self]; > [aboutWindowsetBackgroundColor:[NSColorclearColor]]; > [aboutWindowsetAlphaValue:0.9999999]; //will only show transparent > backgrounds if set to something less than 1.0 > [aboutWindowcenter]; > [aboutWindowsetStyleMask:NSBorderlessWindowMask]; > [aboutWindowmakeKeyAndOrderFront:nil]; > } > > I tried setting some of the settings in awakeFromNib but they didn't seem to > apply properly. > > Thanks, Chris > _______________________________________________ > > 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/lrucker%40vmware.com > > This email sent to lruc...@vmware.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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com