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
1
vote
2 answers
Objective-C Framework PSMTabBarControl does not work - NSTabView Tabs with Style
In my App I'm trying to get PSMTabBarControl working, but all I do - nothing...
I have copied the framework File in my Frameworks folder of my App, then included it. In my InterfaceBuilder (3.2.1) I was able to drag and drop the PSMTabBarControl to…

ahmet2106
- 4,957
- 4
- 27
- 38
1
vote
2 answers
Custom NSTabView with lefttab
I want to make a NSTabView like CleanMyMac or other application.

user1561904
- 243
- 3
- 11
1
vote
1 answer
NSTextView inside NSTabviewItem, loading text delay
I am using NSSplitview of which upper half is NSTableView and lower is NSTabview with 2 items. Each NStabViewItem has a NSTextview. All are defined in nib file.
Now on selection of row of NSTableview, I load content of file and set it on NSTextview…

Rakesh Singh
- 858
- 1
- 12
- 31
1
vote
1 answer
Cocoa Core Data and Tab View - How do I tell when Tab View is finished "loading" so I can tell the view to initialize itself?
I have a simple Core Data app I am building to try to understand Core Data. It has two entities: a weather station, and a collection of observations for a given station.
I created the initial interface for this by putting a tab view on my window,…

Elisabeth
- 2,972
- 6
- 35
- 39
1
vote
1 answer
How do I set initial view in an NSTabView?
I have looked at other SO questions, but cannot see the help I need: I have a Cocoa app with NSViewControllers subclassed in an NSTabView.
Everything works except for - when I first run the app, Tab 0 contents do not show. When I select tab 1, then…

ICL1901
- 7,632
- 14
- 90
- 138
1
vote
1 answer
NSTableView reload data from different controller
I am having problems updating the content of two tables, which are placed in two different tabs of a NSTabView and each controlled by a different controller (Controller1 and Controller3), from a third controller (Controller2).
I tried three…

whiplash
- 151
- 1
- 1
- 13
1
vote
1 answer
Cocoa - WebViews inside NSTabView
I am developing an application with an NSTabView with multiple NSTabViewItems. Each of the NSTabViewItems has a WebView subview. The WebView works as expected except when Flash or Silverlight are running in one of the WebViews. If, while Flash or…

jtomschroeder
- 1,034
- 7
- 11
1
vote
3 answers
cocoa : how to add an icon to NSTabViewItem using the method drawlabel:inRect in cocoa?
I want to add an icon to the NSTabViewItem with some text.
Please help me with the code in drawLabel:inRect: method.
- (id)initWithCoder:(NSCoder *)decoder
{
[super initWithCoder:decoder];
tabCell = [[NSBrowserCell alloc] initImageCell:[NSImage…

user1295948
- 303
- 1
- 5
- 15
1
vote
1 answer
Cocoa using separate controller for an NSTabViewItem?
I have an NSTabView that has different styles of NSTabViewItems. Is there a way that I can separate out the tab controller into a different class than my outerview controller? Just so that I can keep my code tidy. I'm also looking to keep the tab…

Kyle
- 17,317
- 32
- 140
- 246
0
votes
2 answers
How to add a binding programmatically for a NSTabView?
My application contains an NSTabView with two tabs. Further, the application itself has a playState which is an enum. The playState is kept in a Singleton.
typedef enum {
kMyAppPlayStatePlaying,
kMyAppPlayStatePaused
} MyAppPlayState;
The…

JJD
- 50,076
- 60
- 203
- 339
0
votes
2 answers
How to add VoiceOver on NSTabViewItem?
Voiceover is typically implemented with accessibilityRole instance method. I was able to use it on a button for example
button.accessibilityRole = NSLocalizedString(@"Button", nil);
But when I use it on a NSTabViewItem,
NSTabViewItem *item0 =…

eh1412
- 43
- 1
- 2
- 8
0
votes
1 answer
Mystery observer in crash of NSCollectionView embedded in NSTabView
I have an NSCollectionView embedded in one of the tabs of an NSTabView. The collection is loaded and displays correctly, but upon switching to any other tab, the app crashes with the following crash log. The crash notes that an observer…

johnpurlia
- 113
- 6
0
votes
1 answer
How do I simulate automatic Tab creation in a macOS window with the Option key held down?
Default behavior: The option key forces a Tab
I have a document based macOS app, with a custom NSDocumentController. The app can handle two types of documents, each with their own windows and views.
Now, if the user has turned off the option to…

Thomas Tempelmann
- 11,045
- 8
- 74
- 149
0
votes
1 answer
Making Inspector Sidebar in macOS Window
I would like to make an "inspector sidebar" in a macOS window. You know the inspector in Xcode:
The sidebar's content should be context sensitive. Depending on the user's selection in the main window there should be different dialogs.
Which…

Michael
- 51
- 1
- 8
0
votes
1 answer
Tab View Controller Window Sizing Stuck
Whenever I implement a Tab View Controller the window sizing seems to be stuck in the same configuration, even when I change all the window and view controller sizing values.
user12288916