• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Custom About Box with background shape
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Custom About Box with background shape


  • Subject: Custom About Box with background shape
  • From: Chris Paveglio <email@hidden>
  • Date: Mon, 07 Nov 2011 12:04:12 -0800 (PST)

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

  • Follow-Ups:
    • Re: Custom About Box with background shape
      • From: Ken Thomases <email@hidden>
    • Re: Custom About Box with background shape
      • From: Lee Ann Rucker <email@hidden>
  • Prev by Date: Re: ObjectController preventing WindowController from releasing
  • Next by Date: Re: Custom About Box with background shape
  • Previous by thread: Re: UITextField and UIGestureRecognizers
  • Next by thread: Re: Custom About Box with background shape
  • Index(es):
    • Date
    • Thread