Top "Nsview" questions

NSView Implements basic drawing, event handling and printing behaviors for applications.

Best way to change the background color for an NSView

I'm looking for the best way to change the backgroundColor of an NSView. I'd also like to be able to …

objective-c macos background-color nsview
How to add an NSView to NSWindow in a Cocoa app?

Since the template of an OS X app in Xcode seems to be similar to an empty app template, the …

objective-c macos cocoa nsview nswindow
Setting backgroundColor of custom NSView

What is the process of drawing to NSView using storyboards for osx? I have added a NSView to the NSViewController. …

swift macos cocoa nsview xcode-storyboard
NSView's bounds vs frame

What's the difference between bounds and frame? In fact, why does 'bounds' even exist? The size of 'bounds' is equal …

objective-c cocoa nsview
How do I make an NSView move to the front of all NSViews

I have a super view, which has 2 subviews. These subviews are overlapped. Whenever i choose a view from a menu, …

cocoa nsview
How can I create Yosemite-style view with translucent/blurry background?

In Yosemite sidebars have a semitransparent "vibrant" background. How can I create a view like that in 10.10/Xcode 6? Can I …

macos interface-builder nsview osx-yosemite
NSView's autoresizing behavior

I need to understand how NSView autoresizes it's views. I've set everything up in IB and my subviews resize nicely (…

cocoa macos nsview autoresize
Selection Highlight in NSCollectionView

I have a working NSCollectionView with one minor, but critical, exception. Getting and highlighting the selected item within the collection. …

objective-c cocoa nsview nscollectionview nscollectionviewitem
How to set NSView size programmatically?

How do you set the size of NSView programmically e.g. -(void)awakeFromNib { self.frame.size.width = 1280; // Does nothing... …

macos nsview window-resize
How to use Swift playground to display NSView with some drawing?

Basically I would like to test a chart drawing in a Swift playground in NSView.

swift nsview swift-playground