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
How to get IBOutlet for NSColorPanel opened by a NSToolbarItem
I have a NSToolbar. One of the default items (created by IB, so you can check it out by just adding an NSToolbar to a XIB) is an a NSToolbar item that opens NSColorPanel when clicked. However, I see no way to get a IBOutlet connecting the…

PopKernel
- 4,110
- 5
- 29
- 51
0
votes
2 answers
How to add popup menu on NSToolbar item?
I've tried to add NSPopupButton + CustomView, but it's not what I wanted.
I would like to mimic "Tasks" on Xcode's toolbar.

Irwan
- 783
- 1
- 13
- 28
0
votes
1 answer
Make an NSToolbar's fullScreenAccessoryView visible at launch
I am trying to make an application with a toolbar controller which view is shown, and for each view shown I want to include a second 'row' for the toolbar, and I found out that to do this you had to do [toolbar setFullScreenAccessoryView:view]. …

Python Spoils You
- 374
- 1
- 2
- 12
0
votes
1 answer
NSToolbar redo and undo auto - enable NSToolbarItem
In my document based application i implemented the redo and undo behavior with NSUndoManager.
I want to enable or disable the undo / redo NSToolbarItems automatically (as in the default menu), based on the canRedo and canUndo (my NSToolbarItems are…

Peter Lapisu
- 19,915
- 16
- 123
- 179
0
votes
1 answer
Second toolbar like in Mail + Toolbar under a NSScrollView
I have searched google and SO but i can't seem to find my answer (which is strange)
How do I create a second row in a toolbar like in Xcode and Apple Mail?
Second: I really like to be able to make a "toolbar" or button bar underneath a ScrollView…

d00dle
- 1,276
- 1
- 20
- 33
0
votes
2 answers
Toolbar hides when I End the project from XCode
I'm building an application in Xcode with a toolbar that is not visible at launch and must be accessed by the menu bar. However, as soon as I un-checked the "Visible at Launch" the toolbar disappeared and I don't know how to get it to show itself…

russellsayshi
- 2,449
- 5
- 17
- 21
0
votes
1 answer
Changing view in NSWindow removes contents of view
I am using an NSToolbar and NSWindowController to change the views of an NSWindow. When the toolbar items are selected, the view is successfully changed for the window and the window changes it's size according to the view size. Upon the initial…

wigging
- 8,492
- 12
- 75
- 117
0
votes
1 answer
Toolbar buttons are disabled by default for Lion Cocoa app
I've created an interface nib/xib file. The app is basically working, which is cool. The standard toolbar buttons look bad, they're glossy and raised, while most apps in Lion have the flat, inner bevel look. So I created some image toolbar buttons…

newz2000
- 2,602
- 1
- 23
- 31
0
votes
2 answers
NSWindow's title as indicator popup button
I'm trying to make my first Cocoa app (previously I was making iOS apps) and what I wish to do for my custom view is make it's title clickable with indicator (accessory) triangle facing down.
Clicking the title would open a popup/menu with my…

Galfaroth
- 33
- 7
0
votes
2 answers
Reset NSToolbar back to default configuration
I programatically create an NSToolbar in my application. I just added a new button to the toolbar and added that button to the default configuration of the toolbar. When I run my application the new button is not shown by default. That's because I…

regulus6633
- 18,848
- 5
- 41
- 49
0
votes
1 answer
Change the image of the search button cell in NSSearchField
I have a NSToolbar which contains a NSSearchField.
I have changed the image of the search button cell (in awakeFromNib) to one that more accurately describes what I am doing.
Unfortunately, if the user customises the toolbar the default image is…

Milliways
- 1,265
- 1
- 12
- 26
-1
votes
1 answer
Make NSToolbarItem become first responder
In my MacOS app, there is an NSSearchField in the Toolbar. I want to enable users to focus it by pressing CMD+F (the same behavior that is used in many of Apple’s apps). I created an NSMenuItem with a key equivalent of CMD+F – it calls the following…

chl
- 380
- 3
- 18