I am looking for the equivalent of drawRect for adding subviews, as I would like to create my own single row/column table view from scratch, for various reasons.
It is important that I know the rect ...

I'm trying to set the thickness of a divider of a NSSplitView to a specified CGFloat value but I get the error: "Cannot assign to the result of this expression error in Swift".
I do it this way and ...

I'm trying to load a NSPanel when to send message when something happen in the NSView. But I can not figure out how to call the NSPanel from the NSView or how to call a method from the NSView class
...

I am looking for an efficient way to draw text in a layer backed NSView as I am trying to keep frame-per-second (fps) high inside an NSScrollView.
My understanding is as follows: layer-backed NSView ...

I'm using the animator() to scroll a NSScrollView sideways between frames (child views) of my app. When the animation is happening and I resize the NSWindow the whole NSView gets distorted like so:
...

I'm trying to create a custom NSView to display in a column in a view-based NSTableView. The view contains 2 subviews, an NSTextField and an NSButton. I want the button to stay the width set by the ...

I am having a NSView let call this Detail View in my main view controller in which all the auto layout constraints will be added in dependent with the main view. I will be adding a subview lets call ...

I know how I may be able to do this programmatically. I know that when creating storyboards for iOS it's very easy and is right there in the attributes inspector. However when creating storyboards for ...

I have a NSStatusItem in my Cocoa projeсt, targeted on SDK 10.9. I also use NSStatusItem::setView here to implement semi-custom tray icon. Obviously, setTitle won't work here, because of custom view ...

I added a custom subview to a NSStatusBarButton only to handle right/left mouseDown events. I draw the icon of the NSStatusBarButton with
statusItem.image = statusImage // NSStatusBarButton
... and ...

I'm creating an app in Xcode 6.1 and Objective-C. I have a NSView and I'm doing the drawings in the drawRect function. In this I have an array of 100+ double values loaded by the viewcontroller from ...

Maybe it's just a missing coffee, but I encounter a strange problem. I have a simple NSView subclass which I assign to the contentView of a window. Inside the view I have a couple of outlets assigned ...

I'm working on a drag/drop of NSViews within a parent view and I can't seem to find a way to animate the scale up of the particular view being dragged. I've look high and low and can't seem to find ...

How to add drag , move , rotate function on each NSImageView present in NSView?
I have many NSImageView on NSView i want to add Drag , rotate , resize and delete function on each NSImageView
basically ...

I'm creating an application to the new OS X Yosemite. I want to create an effect that is very common in this new version, opacity. As an example, the effect that I want, is like the one that exists in ...

I'm working on an NSView subclass and I'd like to know when its window is closed so I can do certain housekeeping tasks. What is the standard way to do this? If possible, I'd like to do this within ...

I have a CALayer hosting view, which I would like to be able to zoom, scroll around and click in. If I embed it in a scrollview, the scrolling works fine, but zooming causes the contents to fly away ...