How to manipulate the window shadow?

For example: increase the shadow, remove the lower shadow, ...

And I tried to override the invalidateShadow NSWindow selector , but it was not called when the window shadow changed. I do not want to remove the shadow, I want the shadow not to be invalidated. When is invalidateShadow called ?

+3
source share
1 answer

What about..

  • make it NSWindowshadow
  • use transparent NSWindowwith a custom NSViewone slightly larger than the original window,
  • set it as a child window of your content window,
  • draw any shadow / decoration that you find appropriate for this custom presentation.
0
source

All Articles