• 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
Halo Around Window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Halo Around Window


  • Subject: Halo Around Window
  • From: Stefan Schüßler <email@hidden>
  • Date: Thu, 2 Jun 2005 16:13:37 +0200

I have encountered another halo. When drawing a shape (NSBezierPath) into a transparent window (NSBorderlessWindowMask, backgroundColor=clearColor) there is some kind of halo between the shape and the (window's) shadow.

GIF image

The image shows the window with shadow turned on and off.

The path is filled with "lightGrayColor":

- (void)drawRect:(NSRect)rect
{
[[NSColor lightGrayColor] set];
[[NSBezierPath bezierPathWithOvalInRect:NSMakeRect(0,0,30,30)] fill];
}


Using the path as a clipping path gives the same result. Invalidating the window's shadow didn't help either.

Everything works fine with a custom shadow (NSShadow) but I'd like to have NSWindow's shadow working.

Any ideas?

Stefan

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Program structure
  • Next by Date: ASCII problem
  • Previous by thread: NSUserDefaultsController question
  • Next by thread: ASCII problem
  • Index(es):
    • Date
    • Thread