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.
Questions tagged [nstabview]
95 questions
0
votes
1 answer
How to make a button change a tab in Objective C Cocoa applications
In this tutorial, I learned how to make a button say hello world in an OSX Cocoa application with Objective C, using XCode 7.
Now how do I make it call my tab view and make it switch a tab programmatically?
See, I'm implementing my interface with…

Volomike
- 23,743
- 21
- 113
- 209
0
votes
2 answers
How to change the color of the tab button and the view itself in NSTabView?
I am working on OS X app, and I am using NSTabView. I would like to change the background color of the tab (button). Currently the background is blue, (Attribute Inspector -> Appearance = Inherited (Aqua).
Same is true with the background color of…

user2417624
- 653
- 10
- 32
0
votes
1 answer
Toolbar not displayed when segue back to tabviewcontroller (iOS Swift)
I have a tabviewcontroller that has three tabs, park, location, and attractions. On the attractions page, annotations of attractions are populated on a mapview. when you click on the callout for the mapview, you can click on the annotation and it'll…
0
votes
1 answer
sorting doesn't work in nstableview
I have an core data, non document based os x app. I use NSTabView to display different data. In the third tab, I have NSTableView, and i display some records there. I am trying now to sort the data by e-mail. In my e-mail field I have set the Sort…

user2417624
- 653
- 10
- 32
0
votes
0 answers
Getting notified when an NSView comes to the foreground
I have a NSTableView inside the second tab of a NSTabView. The table uses some custom event code that takes care of buttons in the table being clicked are recognised. The problem is that even if I have the first or third tab of the tab view open…

BadmintonCat
- 9,416
- 14
- 78
- 129
0
votes
1 answer
Horizontally center label in NSTabViewItem
I've created a subclass of NSTabViewItem so that I can specify a specific width for the tab view item, as demonstrated in this answer. This is working well, however the label for the tab is not horizontally centered, so there is extra padding to the…

Jordan H
- 52,571
- 37
- 201
- 351
0
votes
1 answer
Overhang subviews getting created twice Exception MAC
I am getting this exception in MAC where I am creating two Tab View Item in a Window.I have a table view for each tab.
I searched a lot but could not see any soultions? Can anybody help me…

sheetal
- 3,014
- 2
- 31
- 45
0
votes
2 answers
Changing properties of container view
I have a tabView with let's say 3 tabs, each of the tabViewItems contains a webView. I want to set the title of each tab as the document.title of the HTML page each webView is rendering.
So basically, each NSTabViewItem has a Webview, via…

jeanpaul62
- 9,451
- 13
- 54
- 94
0
votes
1 answer
Adding NSMatrix of buttons (NSRadioModeMatrix) in custom view, setting target/action
I am subclassing NSTabView to customise the appearance. I want to use an NSMatrix of NSButtonCells to select the tabs. I managed to add the NSMatrix with buttons in the initWithFrame: method of my NSTabView subclass. What I can not get to work is…

Martin
- 333
- 1
- 3
- 6
0
votes
1 answer
How to bind different entities with NSTableView and NSTabView?
I have an NSArrayController which handles entities of GeometryShape.
GeometryShape has: name, type, color.
LineShape is a GeometryShape and has: beginPositionX, beginPositionY, endPositionX, endPositionY.
CircleShape is a GeometryShape and has:…

StackUnderflow
- 2,403
- 2
- 21
- 28
0
votes
1 answer
deriving from NSTabViewItem
I'm writing a Cocoa app. One dialog has 3 tabs, some of the tabs needs more loading time, so I want to load them lazily. Since each Tab is a NSTabViewItem class, so I'm trying to derive from it and overriding its view property. In the view getter…

Jonny
- 312
- 4
- 14
0
votes
0 answers
Tab View not showing in interface builder and compiled app
I was adding a component to my tab view in interface builder, when all of a sudden everything just disappeared. All I have left now is an empty "Custom View". However the tab element itself still exists in the sidebar. And I can drag it out of the…
user429620
0
votes
1 answer
Window resizing and view update of inactive tabs in NSTabView
I have an NSTabView with multiple tabs, each containing an NSScrollView. In the scollviews I dynamically place custom views which are sized using autolayout and constraints.
Now if I add my custom views to eg. tab1 and resize the window with this…

kwicher
- 2,092
- 1
- 19
- 28
0
votes
1 answer
Implement "Empty View" for NSTabView
I've been experimenting with JUEmptyView (a custom Cocoa control / NSView subclass, which displays a custom center-aligned placeholder in the middle of the view when all subviews have been removed).
So, I tried implementing the same thing for an…

Dr.Kameleon
- 22,532
- 20
- 115
- 223
0
votes
1 answer
How to prevent a sub view from drawing until parent view is selected?
I have a NSTabView with 3 tabs. I want to prevent the subviews of those tab from drawing until it is selected. How would I go about doing this? I have set up a delegate for the NSTabView but am having trouble figuring out which tab is selected.

stormbard
- 56
- 1
- 9