• 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
Re: Custom borderless window not getting it's shadow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom borderless window not getting it's shadow


  • Subject: Re: Custom borderless window not getting it's shadow
  • From: Ken Tozier <email@hidden>
  • Date: Wed, 11 Nov 2009 02:00:30 -0500

I tried it both with content and without. Same result. Seems like of twitchy because I could have sworn that when I fort wrote the window a couple of days ago, it did have a shadow, matter of fact, I'm certain of it. Doesn't seem to have any effect progressively commenting out all the custom code back to the bare shell from my original post, no luck.




On Nov 11, 2009, at 12:17 AM, Kevin wrote:

Does the window have any content?

Kevin

On Nov 10, 2009, at 11:09 PM, email@hidden wrote:

Hi


I'm writing a custom borderless window class and am finding that the shadow doesn't appear. Here's a bare bones implementation that shows the problem.




- (id) initWithSize:(NSSize) inSize
origin:(NSPoint) inOrigin
{
NSRect winFrame = NSMakeRect(inOrigin.x, inOrigin.y, inSize.width, inSize.height);


self = [super initWithContentRect: winFrame
styleMask: NSBorderlessWindowMask
backing: NSBackingStoreBuffered
defer: YES];

if (self)
{
[self setHasShadow: YES];
[self orderFront: self];
}

return self;
}


Shouldn't this work? _______________________________________________

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


References: 
 >Custom borderless window not getting it's shadow (From: email@hidden)
 >Re: Custom borderless window not getting it's shadow (From: Kevin <email@hidden>)

  • Prev by Date: Re: View swap using "push" animation
  • Next by Date: Re: Cocoa Sounds
  • Previous by thread: Re: Custom borderless window not getting it's shadow
  • Next by thread: Cocoaheads Lake Forest (92630) meeting Wednesday, 11/10 at the Corner Bakery at the Irvine Spectrum
  • Index(es):
    • Date
    • Thread