Re: Custom About Box with background shape
Re: Custom About Box with background shape
- Subject: Re: Custom About Box with background shape
- From: Lee Ann Rucker <email@hidden>
- Date: Mon, 07 Nov 2011 12:33:22 -0800
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 (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
_______________________________________________
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