nstoolbaritem Questions
4
Solved
I have a toolbar with various options and some options should not be visible in some cases. I have already figured out a way to disable them in my application, using this callback:
- (BOOL) valid...
Gaikwar asked 10/2, 2011 at 22:2
5
Solved
I want to show an NSPopover from an NSToolbarItem button in my toolbar.
(i.e. positioned below the button).
Ideally, I want to pass the NSView of the button to the popover to position it.
My quest...
Easiness asked 15/11, 2011 at 20:33
2
With macOS 11 Apple has introduced a new NSToolbarItem called NSSearchToolbarItem that automatically resizes to accommodate typing when the focus switches to the toolbar item.
Here Apple says thi...
Session asked 8/11, 2020 at 15:42
1
Almost all macOS official apps have this toolbar's feature which the NSToolbarItem flexible space is constraint to NSSplitViewItem view. I first thought maybe there are 3 different sections on NS...
Shugart asked 21/9, 2016 at 20:23
1
Solved
In Big Sur, Xcode and Calendar have toolbar items that stay over the sidebar when open but remain visible on the left side when the sidebar's collapsed.
Sidebar open:
Sidebar collapsed:
In "...
Luben asked 20/8, 2020 at 19:32
2
Solved
Finder and Notes have a peculiar behaviour that I am seeking to reproduce. The ‘flexible space’ in the NSToolbar seems to take the dimensions of the split view into account. For instance, the first...
Levasseur asked 29/12, 2016 at 2:11
1
Solved
Desired look
I wish to make a toolbar for my app that will contain some simple buttons, each with a single monochromatic icon. Here is an example of some toolbar buttons similar to I'm trying to ac...
Goltz asked 8/9, 2017 at 13:29
1
Solved
I have an NSToolbarItem with an NSButton as its view and an NSMenuItem in the main menu. Both have the same action, which is sent to the first responder, not to a particular target. That method is ...
Acosmism asked 26/2, 2017 at 15:49
5
Solved
Since upgrading to Mac OS Sierra and the new XCode version I get the following error every time I launch my application for every one of the NSToolbarItems:
Example 1:
2016-09-29 12:46:58.659879 A...
Motorman asked 29/9, 2016 at 11:1
2
In my project I have a NSToolBar which has 5 NSToolBarItems. I want to remove last two toolbarItems in which one is NSToolbarSpaceItemIdentifier, and reload the toolbar again.
How to do this?
I am...
Breathy asked 29/1, 2014 at 10:59
1
Solved
I want to add two touching items, such as a forward and back button, to NSToolbar, like so:
NSToolbar seems to add horizontal margins by default, for each item, like this:
I checked out the X...
Selfinduced asked 30/4, 2016 at 18:32
2
I'm using an NSToolbarItemGroup to group a set of NSToolbarItem's together. Currently there is a 2pt space between each item in the group, ideally I would like them to be completely merged visually...
Broussard asked 6/7, 2015 at 11:30
4
Solved
I have a project that needs to disable/enable some NSToolbarItems depends on different options. I checked and found no parameter for this.
Is there a way to enable/disable a given NSToolbarItem?
Fokos asked 5/11, 2011 at 2:48
2
I have been creating a preferences panel that would pop up when an user taps ⌘+, in my Cocoa app, and I like to use the same General and Downloads icons that are used in Xcode.
However, as far a...
Twostep asked 2/2, 2015 at 13:38
1
Solved
I have this OSX storyboard-based application that starts with a NSSplitViewController like this:
This splitViewController has two viewControllers: master and detail.
Inside the window I have a ...
Frazer asked 18/12, 2014 at 20:18
1
Solved
I'd like to make an NSToolbarItem with a custom image which toggles between Black and Blue, like the icons at the top right of Xcode 5's main window.
Peter Hosey suggested in this answer that it w...
Chasidychasing asked 31/12, 2013 at 5:27
2
I'm struggling with Cocoa for 2 hours now without success. I want to add a custom view to the toolbar. So, I added a NSToolbar to the window (with IB), and added my view (which works perfectly). IB...
Chaldea asked 15/2, 2011 at 18:58
6
I have a NSToolbarItem that uses a view similar to the Xcode status view. It currently has no label, but I can't figure out a way to draw into the area where the item label would normally be drawn....
Arevalo asked 29/5, 2011 at 17:32
1
Solved
I'm looking for a method called addNewItem:(NSToolbarItem *)item or something like this that lets me add a programmatically created item to my toolbar, but I haven't found any. I would like to add ...
Fuzee asked 6/9, 2011 at 14:26
1
Solved
I am trying to recreate the nice textured buttons like Finder, Safari and Transmission have in their toolbar. First I started by just dragging in a "Texture button" in the IB and such. All works we...
Maidie asked 2/8, 2010 at 21:7
1
© 2022 - 2025 — McMap. All rights reserved.