Top "Nsview" questions

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

NSWindow with round corners and shadow

I'm trying to crate a NSWindow without title bar (NSBorderlessWindowMask) with round corners and a shadow, similar to the below "…

objective-c cocoa nsview nswindow
Rounded rect on NSView that clips all containing subviews

I am creating a NSView subclass that has rounded corners. This view is meant to be a container and other …

cocoa nsview rounded-corners clipping nsbezierpath
addSubview and autosizing

How does one add views to a window, so that the views are resized to fit within the window frame? …

cocoa interface-builder nsview nswindow autosize
Adding border and Rounded Rect in the NSView

In my Application , NSView should have rounded rect and border, i tried following static CGColorRef CGColorCreateFromNSColor (CGColorSpaceRef colorSpace, NSColor *color) { …

cocoa macos nsview
Get ALL views and subview of NSWindow

Is there a way I can get ALL the views and subviews and subviews of these subviews (you get the …

objective-c cocoa nsview nswindow
mouseMoved not called

I have a subclassed NSView which is part of a .xib-file of a subclassed NSDocument, which gets alive by the …

xcode cocoa nsview osx-lion nswindow
What's the preferred/recommended way to draw a line in NSView-drawRect: method?

I couldn't found any line drawing primitive in Cocoa at NSView level. The only thing I've been found is NSBezierPath. …

cocoa drawing line nsview
How to find if the mouse is over a view

I need to find if the mouse position is inside an NSView's rect. I'd use NSPointInRect(point, rect), but I'd …

objective-c cocoa macos nsview
Subclassing NSView to have a transparent background

I am creating an app where I need to have a transparent NSView with a transparent PNG image inside. The …

objective-c cocoa macos subclass nsview
Make NSView NOT clip subviews outside of its bounds

Is it possible to make an NSView not clip its subviews that are outside of the bounds? On iOS I …

objective-c cocoa calayer nsview clip