Questions tagged [nsvisualeffectview]

NSView subclass which provides support for vibrant appearances.

NSVisualEffectView provides support for the user interface effects introduced in OS X Yosemite related to translucency, including “vibrant” appearances. To make the contents of a view blend with whatever is behind the view’s window or blend with contents of a view deeper in the view hierarchy, you contain the view in a visual effect view.

Apple Developer documentation page

56 questions
4
votes
1 answer

Make Title Bar and View Controller seamless with Dark Transparency

Hi so iv been looking all over the internet and have found all kinds of useful information on this topic but none seems to be working if trying to get something like this where the title bar and the rest of the window blend. From the internet the…
Eli
  • 668
  • 2
  • 13
  • 37
4
votes
2 answers

Disable NSVisualEffectView in Source List NSTableView

I have an older application that has a specific appearance based on NSCell-based NSTableView having Source List highlighting. Unfortunately, on Yosemite this adds the NSVisualEffectView vibrancy under the selected cell which breaks the appearance in…
Jacob Gorban
  • 1,431
  • 1
  • 9
  • 15
3
votes
1 answer

My NSWindow's shadow is getting cut off when switching screens?

I wanted to have an NSWindow with a blurred background so I created a wrapper for NSVisualEffectView to be used in my ContentView() with some help from How do you blur the background in a SwiftUI macOS application?. I also tried doing it with just…
tyirvine
  • 1,861
  • 1
  • 19
  • 29
3
votes
0 answers

How to Match NSVisualEffectView Color to Window

I am working on a Swift 4 macOS Application that involves a vibrant dark window and an in-window NSVisualEffectView. Currently, the NSVisualEffectView's color does not quite match that of the window, but it is very close. How can I make the…
Jake3231
  • 703
  • 8
  • 22
3
votes
2 answers

How to add buttons when NSVisualEffectView is used

I have created a window using NSVisualEffectView to get blur and rounded corners. Like here The problem is I don't see my button in the window when I have NSVisualEffectView code. If I remove the code, the button is displayed. What is going…
ssh
  • 491
  • 1
  • 8
  • 19
3
votes
1 answer

10.10 Source List that goes through TitleBar?

Just curious about how to accomplish this kind of custom columned app view. The source list goes straight through the titlebar but just on one side, I'm guessing that they hid the titlebar, maybe and then used an NSVisualEffectView? Any source code…
Jon Brown
  • 235
  • 1
  • 3
  • 10
2
votes
0 answers

NSVisualEffectView within window no longer blurry in 10.13

An existing app that uses NSVisualEffectView (Blending set to Within Window, Material Dark, State Active) no longer seems to 'blur' the content behind it. The app works fine on 10.12 and 10.11 and so on. However with 10.13 beta it appears as a…
strangetimes
  • 4,953
  • 1
  • 34
  • 62
2
votes
1 answer

NSVisualEffectView disappears when using a layer-backed view

My goal I would like to add a vibrancy effect to a collection view. The setup I have the following view hierarchy: When I use this layout, the background has the vibrancy effect as expected, but the performance is not quite there. NSCollectionView…
József Vesza
  • 4,775
  • 3
  • 27
  • 42
2
votes
1 answer

Xcode 6 Don't Apply Vibrant Effect to Child View

Good evening, everyone! Is it possible to apply the "vibrant" visual effect to a parent view, without a child view inheriting it? My main window has the vibrant effect applied to the entire view, but when using a popover segue to display a new view,…
Michael Bethke
  • 170
  • 4
  • 17
2
votes
0 answers

NSVisualEffectView with Tab View Controller using storyboard

Im using storyboard in my app and TabViewController with three tabs. When I put NSVisualEffectView in my views it works fine, but when I move my window, my VisualEffectView starting disappear. Settings for my visual effects are: Behind window,…
Prontto
  • 1,671
  • 11
  • 21
2
votes
1 answer

Blending over NSVisualEffectView

I want to draw image with HardLight composite operation. I've created NSImageView with next draw code: - (void)drawRect:(NSRect)dirtyRect { //[super drawRect:dirtyRect]; if (self.image != NULL) { [self.image drawInRect:self.bounds…
Vincenso
  • 516
  • 4
  • 8
2
votes
1 answer

How to use NSVisualEffectView in a Layer Host NSView

I have a NSView in my OSX app use CALayer doing all sort of animations. This view is a layer host view which contains many small layers. I want to add a NSVisualEffectView with NSVisualEffectBlendingModeBehindWindow blendingMode to support blur…
lulu
  • 31
  • 3
2
votes
0 answers

Cocoa: backgrounds of components on NSVisualEffectView rendering incorrectly when layer-backed NSView shade is added to NSWindow’s contentView

I have a semi transparent NSView that I’m using as a shade to dim out the main window while a modal window is displayed as a sheet in my Cocoa app (OS X Yosemite). See Update section, below, for isolated sample project. The shade gets displayed…
Aral Balkan
  • 5,981
  • 3
  • 21
  • 24
1
vote
0 answers

Returning another NSView subclass in 'initWithCoder' results in error "This coder requires that replaced objects be returned from initWithCoder""

I want to make a backwards-compatible background view for my application (OS X 10.6+) and then use it inside my Application.xib. I made a subclass of NSView which returns NSVisualEffectView or NSView (depends on macOS…
ReSophie
  • 121
  • 6
1
vote
0 answers

NSVisualEffectView not applying intended "frosting" effect

Modern applications increasingly often use the typical "frosting" effect for their window backgrounds. Such an effect usually consists of a combination of blurring and playing with the vibrancy of the background. To my knowledge, and according to…
linus_hologram
  • 1,595
  • 13
  • 38