Top "Nsview" questions

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

Explicit animation of NSView using core animation

I'm trying to slide in a NSView using core animation. I think I need to use explicit animation rather than …

cocoa delegates core-animation nsview explicit
How do I take a "screenshot" of an NSView?

I need to take the contents of an NSView and put them in an NSImage, for an experimental project. Is …

objective-c cocoa macos nsview nsimage
Repeating background image in an NSView

I am trying to draw a repeating background image in my NSView, I have this till now: // INIT - (id)…

cocoa drawing nsview nsimage
Swift: How to change NSImage image source?

I'm a newbee with XCode and Swift. Trying to simply set an image in my view in an OS X …

xcode swift nsview nsimage nsimageview
Drawing Image with CGImage?

I have a CGImageRef and I want to display it on an NSView. I already have an CGImageRef from source …

cocoa core-graphics nsview quartz-2d
Force NSView to redraw programmatically

My app has two different states, and every state will be representing with a NSView. so there is only one …

objective-c macos cocoa nsview
NSView initialization: -init: vs. -awakeFromNib:

I have a simple class MyView inherited from NSView and instance variable NSImage * image; in it. Class functionality is to …

objective-c cocoa user-interface nsview
Accessing parent view when adding subview

I have a ViewController that has 2 NSViews in it of different sizes. I'm wanting to add the view of a …

ios nsview nsviewcontroller
Adding a custom view to toolbar

I'm struggling with Cocoa for 2 hours now without success. I want to add a custom view to the toolbar. So, …

cocoa nsview nstoolbar nstoolbaritem
Getting the center point of an NSView

I need to get the center point of a NSView in the form of a CGPoint, how can I achieve …

cocoa macos nsview