Questions tagged [nstoolbaritem]

NSToolbarItem refers to the class in the graphical user interface toolkit Appkit framework that is an item in a window's toolbar, and which inherits from NSObject. Use this tag for questions related to such a class.

NSToolbarItem refers to the class in the graphical user interface toolkit Appkit framework that is an item in a window's toolbar, and which inherits from NSObject. Use this tag for questions related to such a class.

96 questions
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
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
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

NSButton in NSToolbar item: click issue

I want to use a NSButton configured to show only an image in my NSToolbarItem. The item is created in IB and the code to add the button to it is: NSButton *button = [[NSButton alloc]init]; [button setImage:[NSImage imageNamed:@"StarEmpty"]]; [button…
Luca
  • 1,704
  • 3
  • 29
  • 42
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
-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
1 2 3 4 5 6
7