Questions tagged [nstabview]

An NSTabView object provides a convenient way to present information in multiple pages. The view contains a row of tabs that give the appearance of folder tabs, as shown in the following figure. The user selects the desired page by clicking the appropriate tab or using the arrow keys to move between pages. Each page displays a view hierarchy provided by your application.

95 questions
14
votes
1 answer

Hide tab bar in NSTabViewController in storyboard

Does anybody know how to hide the tabbar within a NSTabView? There are just iOS versions out there but I need a solution for OSX. Here is my storyboard: I want to hide the tabbar… Where do I have to do it and how do I have to do it?
Tom el Safadi
  • 6,164
  • 5
  • 49
  • 102
7
votes
3 answers

SwiftUI: Custom Tab View for macOS & iOS

Is there a simple way to get a more customizable tab bar view using SwiftUI? I'm mainly asking from the perspective of macOS (though one that works on any system would be ideal), because the macOS implementation of the standard one has various…
TheNeil
  • 3,321
  • 2
  • 27
  • 52
6
votes
6 answers

How to draw your own NSTabView tabs?

I want to draw my own tabs for NSTabViewItems. My Tabs should look different and start in the top left corner and not centered. How can I do this?
cocoafan
  • 4,884
  • 4
  • 37
  • 45
5
votes
2 answers

Cocoa - finding out when an NSTabView has changed its tabs

How can I find out when a NSTabViewItem has been changed, i.e. a user has changed the view of an NSTabView? Ideally I want to generate a notification but any solution would be welcome.
Kevin
  • 1,469
  • 2
  • 19
  • 28
5
votes
1 answer

Automatically resize NSTabView to fit content view

I have a NSTabView with a number of NSView items. I want to resize the tab view so that the displayed view always fits snugly within the tab view. I've tried a number of variations of setFrame within the tabView's delegate didSelectTabViewItem and…
John
  • 10,837
  • 17
  • 78
  • 141
5
votes
1 answer

NSTabView not working in NSAppearanceNamedVibrantDark Popover

When I try to put an NSTabView inside a vibrant dark Popover (as an NSPopover contentViewController's view) I get a completely black background. When I put it in a regular vibrant dark window, it works. When I put it in a vibrant light popover or…
circuitlego
  • 3,469
  • 5
  • 22
  • 22
5
votes
3 answers

Animating NSTabView Views

I am trying to animate each view of NSTabView with a slide in when the view is selected. I have this working in a fashion, but it only animates the first time i select a new tab view. After that i do not see an animation when switching tab views,…
Gary Simpson
  • 2,677
  • 2
  • 17
  • 18
4
votes
1 answer

Add a close button to NSTabviewitem

I have a application with a tab view when the user clicks in the menu for example "client data" I generate a tab programmaticaly. Now I want to subclass the tab view to add a close button for each NSTabviewitem. If you don't have an answer you could…
Javier Beltrán
  • 756
  • 5
  • 26
4
votes
1 answer

Implementing NSSegmentedControl in NSToolbar to control NSTabViewController

In my macOS application, I'm trying to replicate the Photos.app implementation of NSSegmentedControl in NSToolbar to control an NSTabViewController. For reference, here's what that looks like: So, my approach was as follows: Hide the default…
Sam Fischer
  • 1,442
  • 19
  • 35
4
votes
3 answers

How do I create a tabbed panel similar to the Xcode properties panel

I am trying to create a tabbed panel similar to the Xcode properties panel but the standard tabbed panel appears to have a different look and feel with no way to change it. What controls should be used to create a similar looking tabbed…
Duncan Groenewald
  • 8,496
  • 6
  • 41
  • 76
4
votes
1 answer

Control a NSTabViewController from parent View

(I'm using storyboards and swift.) I currently have a NSWindowController which has a NSTabViewController as contentViewController. I am now trying to change the Tabs from the NSWindowController via code using let tabController =…
Mike Nathas
  • 1,247
  • 2
  • 11
  • 29
3
votes
3 answers

NSTabView with background color

As discussed elsewhere, NSTabView does not have a setBackgroundColor method and subclassing NSTabView and using an drawRect to control it does no longer work - as it does not paint the top 10%, the bit just below the segmented control button. Now I…
Dirk-Willem van Gulik
  • 7,566
  • 2
  • 35
  • 40
3
votes
1 answer

How to set the identifier of an NSTabViewItem?

I want to know when a NSTabView switched to a particular view. For that I've extended NSTabViewController with my custom class to be able to act as delegate: class OptionsTabViewController: NSTabViewController { override func tabView(_ tabView:…
Pier
  • 10,298
  • 17
  • 67
  • 113
3
votes
1 answer

One view controller per NSTabViewItem in Swift

I am writing an application for mac OSX in swift and I would like to separate the code clearly so I am looking for a way to have a view controller for each NSTabViewItem in a NSTabView without use the Tab View Controller. Is it possible ?
Ced
  • 93
  • 8
3
votes
3 answers

Mac OS X global tint color like iOS

Is there any possible way to set global tint color in OS X. If I want to set brand color on Cocoa control like NSTabView. How cloud I do it?
Dan Jiang
  • 89
  • 7
1
2 3 4 5 6 7