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
0
votes
1 answer

Prevent transparent NSWindow with a ContentView using blendMode from flickering

The following creates a transparent NSWindow with a ContentView that uses blendMode to create a colour filter overlay effect so that everything behind the window appears blended (grey monochrome in this instance). It's working as expected except…
hillmark
  • 807
  • 8
  • 22
0
votes
1 answer

How can I move a visual effect view to the back in xcode so that I can see my UI in storyboard?

My application looks like this in xcode: I want to add a transparency effect, so I add a visualEffectView. I get this: Cool, it's made the window translucent. But now I can't see any of my UI. Same is true in my xcode storyboard, I can't see any…
SuperHanz98
  • 2,090
  • 2
  • 16
  • 33
0
votes
1 answer

NSPopover + NSBox in dark mode tint/gamma issue

I have NSPopover with NSBox and subviews are: MKMapView and NSImageView. In dark mode the whole NSBox adds gamma/tint to all subviews. This doesn't appear in light mode (compare images below). It seems to be something with NSVisualEffectView. How…
Marek H
  • 5,173
  • 3
  • 31
  • 42
0
votes
1 answer

Xcode 10 - NSVisualEffectView added to NSWindow when displayed modally (Mac OS)

I have a NSWindow that I display modally on some other window to display alerts. The code is: // This code is in MyAlert .m file. MyAlert inherits from NSWindow - (void)showInWindow:(NSWindow *) { [window beginSheet:self…
leandrodemarco
  • 1,552
  • 1
  • 15
  • 22
0
votes
0 answers

Blinking cursor in NSTextField causes drawRect: to be called in custom NSView

I'm running into the strangest issue: I have a Cocoa app with a custom NSView inside an NSScrollView. When I click into the text field, drawRect: is called on my custom view each time the cursor blinks. If I move my custom view outside of the scroll…
Mark
  • 6,647
  • 1
  • 45
  • 88
0
votes
1 answer

NSImageView on NSVisualEffectView

I need to make NSMenuItem with icon at the right side. I ended up with custom view which contains NSTextField and NSImageView on top of NSVisualEffectView with selection material, that I use to imitate system selection. NSVisualEffectView is hidden…
0
votes
1 answer

NSVisualEffectView change takes more than one click to change

So I have an NSVisualEffectView hooked up with a button and some icons. The material of this view is originally equal to NSVisualEffectMaterialDark in other words, Vibrant Dark. The following code I wrote is supposed to do the following: 1) Detect…
Lae
  • 832
  • 1
  • 13
  • 34
0
votes
2 answers

Add a NSVisualEffectView below NSTextView

I want to add a NSVisualEffectView inside my NSTextView, however when I add it, the text is below the NSVisualEffectView, so, how can i add the NSVisualEffectView below the text? My code for OS X: class myTextView: NSTextView { override func…
Geek20
  • 673
  • 1
  • 9
  • 18
0
votes
1 answer

OS X Visual Effect View in Interface Builder not display correctly

I am trying to edit a Visual Effect View in an OS X project in Interface Builder, but all the Visual Effect View and its contents disappear/reappear randomly. When I change Core Animation layers, sometimes they seem to appear correct again, but when…
Can Poyrazoğlu
  • 33,241
  • 48
  • 191
  • 389
0
votes
1 answer

Re-creating FaceTime NSTableview

I'm trying to recreate the same look as found in FaceTime. The left hand table view has a NSVisualEffectView doing some in window blending with a NSTableView sat ontop of it, or so I'm presuming... I've been able to achieve this by making my…
0
votes
1 answer

Make the viewController's view a NSVisualEffectsView

I create a new viewController on storyboard. I want that viewController's view to shown thru the window. So, as far as I understood, I have to transform that view to a NSVisualEffects view. How do I do that using interface builder? I already have a…
UFO
  • 219
  • 3
  • 8
1 2 3
4