Background blur behind MAAttachedWindow?

Just wondering if it's possible. Right now, here is an example of MAAttachedWindow as follows:

enter image description here

However, I want to know if I can blur the background outside the window, for example:

enter image description here

Is this possible without using private APIs?


Request code. Well, here's how MAAttachedWindow works. You just feed it normal NSView, and everything else. So here is how I tried to make the blur:

 CALayer *backgroundLayer = [CALayer layer]; [view setLayer:backgroundLayer]; [view setWantsLayer:YES]; CIFilter *blurFilter = [CIFilter filterWithName:@"CIGaussianBlur"]; [blurFilter setDefaults]; [view layer].backgroundFilters = [NSArray arrayWithObject:blurFilter]; 
+5
source share
2 answers

Not. You cannot do this without using private APIs. (Is my message another 30 characters?)

+5
source

One thing you might consider is not to blur the material outside the window, but instead to capture a background image, blur it, and then use the blurry version as the background of your window.

+1
source

All Articles