• 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 window not getting a shadow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Custom window not getting a shadow


  • Subject: Custom window not getting a shadow
  • From: Ken Tozier <email@hidden>
  • Date: Tue, 10 Nov 2009 06:51:04 -0500

Hi

I'm writing a custom window class and am finding that even though I set the "hasShadow" property to YES, it isn't getting one. I stripped the following example down to the bare esentials but still no shadow. Anyone know why this might be happening?

- (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;
}


_______________________________________________

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 window not getting a shadow
      • From: Rob Keniger <email@hidden>
  • Prev by Date: Adding a vertical scrollbar to a multiline textfield
  • Next by Date: Re: How can a plug-in bundle get access to its own resources?
  • Previous by thread: Re: Adding a vertical scrollbar to a multiline textfield
  • Next by thread: Re: Custom window not getting a shadow
  • Index(es):
    • Date
    • Thread