NSToolbar and NSToolbarItem provide the mechanism for a titled window to display a toolbar just below its title bar.
Questions tagged [nstoolbar]
207 questions
0
votes
1 answer
Custom draw on NSToolbarItem
I have a NSToolbar and I want to draw at the items. This works, if I use a NSView as item instead of an Image Toolbar Item. The problem: A NSView doesn't respond, if I connect it to an IBAction.
How can I subclass an Image Toolbar Item, so that I…

Lupurus
- 3,618
- 2
- 29
- 59
0
votes
0 answers
Erratic action of NSToolbarItem
I am using toolbar buttons to control a simple NSTask. The code below works as expected when the IBAction is given by regular buttons, but produces artifacts when it is given by an NSToolbarItem. More precisely, the run button does not get disabled.…

Luis Vieira Damiani
- 321
- 3
- 6
0
votes
1 answer
Cocoa: NSToolBar with Custom Views. Animation issues
So I got a Window:
Window.xib
I got a WindowController too:
WindowController.h reads:
#import
@interface MainWindowController : NSWindowController
{
IBOutlet NSView *firstView;
IBOutlet NSView *secondView;
IBOutlet…

Dmitri K.
- 197
- 1
- 13
0
votes
1 answer
NSToolbar items hidden using xibs migrated on Xcode 7
We are using xib files to show a window + toolbar.
Compiling a Mac OS app with the latest Xcode (7 or 7.1) makes our toolbars items to be hidden for Yosemite 10.10.5, but it works fine on El Capitan.
If I click the area, the actions are taken, so…

Mihai Panţiru
- 513
- 3
- 16
0
votes
1 answer
how can I customize NSToolbar context menu on OS X El Capitan?
Is there a way to customize the context menu that pops op when right clicking on a toolbar (or the title bar of the window containing it)?
Several Apple applications (XCode, Safari, Mail and probably others seem to be able to remove or hide certain…

Gregory Van Vooren
- 21
- 5
0
votes
1 answer
Showing the NSToolbar only if hovering over the NSPanel
I am making a desktop application and I want to show the NSToolbar of an NSPanel only if the mouse pointer is positioned over that NSPanel. Also, when the mouse pointer is not positioned over that NSPanel, the NSToolbar should be hidden.
Can anyone…
user142019
0
votes
0 answers
NSToolbarItem not selectable
I am building my NSToolbarItem(s) programmatically but they are not selectable. The ones added from the interface builder are selectable because there i have the option of checking the 'Selectable
' option. But the NSToolbarItem class has no…

SiWM
- 90
- 1
- 9
0
votes
0 answers
Toolbar button stays in-active in Cocoa Xcode 6 Storyboard Mac App
I am trying to add a simple IBAction to the Toolbar in the storyboard. I simply added the object to Window in the Window Controller and dragged at Image Toolbar Item to it. Added an image to it and placed in by default. Next I added a new class and…

doom4
- 633
- 5
- 19
0
votes
1 answer
Add navigation buttons to unified titlebar/toolbar
Is there a way to get the the default NSButtons used throughout OS X for navigating through a window's contents? The buttons I'm speaking of are shown in Finder, System Preferences, Safari, Mac App Store, Game Center, etc.
While I could recreate…

Jordan H
- 52,571
- 37
- 201
- 351
0
votes
2 answers
How to set IBOutlet for NSToolbar item in Xcode 6 OSX Storyboard
I am trying to set IBOutlet for a toolbar item in Xcode 6 for OS X application using storyboards. I have seen an example on setting a IBAction but it does not work for IBOutlets. Any help would be appreciated.

Brad Nelson
- 63
- 1
- 5
0
votes
1 answer
FirstResponder as delegate for NSToolBar
I have a Mac app that consists of a window with a variable number of panes in it, each containing a tableview. The window has a toolbar with buttons, and I want the VC for the currently selected pane to handle validating the toolbar items, as well…

Gusutafu
- 745
- 6
- 17
0
votes
1 answer
NSSegmentedControl image default size?
What is the recommended size for NSSegmentedControl segment image?
- (void)setImage:(NSImage *)image
forSegment:(NSInteger)segment
I'm currently using 26x26 PNG image and it looks blurry.
What I want is :

Jun
- 3,422
- 3
- 28
- 58
0
votes
1 answer
How to add items to NSToolBar in Xcode 6 Mavericks(Using storyboards)
So I am using the new Xcode 6 on mavericks. I am also using storyboards in the project. I currently have a NSToolBar with the default items that it comes with, but I can't add any items to it, I try to double click it, double click the items in…

Samuli Lehtonen
- 3,840
- 5
- 39
- 49
0
votes
2 answers
Is there a way to implement a popup menu from NSToolBarItem?
I am trying to implement a pop-up menu (something that can be seen when in Chrome I press right mouse button when the cursor is over the left arrow).
I have a class derived from NSToolBarItem and I have another class derived from NSToolBar. In the…

Igor
- 5,620
- 11
- 51
- 103
0
votes
2 answers
Custom NSToolbarItem Button Not Showing
I have two custom NSToolbarItems in the toolbar of the application. Each class has a NSButton within, where I setup the button and then set the toolbar item's view to the button (the stop button item for example):
@implementation…

xBACP
- 531
- 1
- 3
- 17