nstoolbar

XCode / Interface Builder : How to rename the default NSToolbar Items?

When I add an NSToolbar to my application it comes with some default items like "Customize" or "Colors" and I am unable to rename them. These attributes are disabled and can not be edited. I am looking for an easy way to translate these items since I don't need an English application. I also would like to edit the text of the "done" But...

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 already have been using the program and I already have a plist file in which this new butto...

Assigning key-equivalent to NSToolbarItem?

How can I set a key equivalent for a NSToolbarItem? ...

How to add a pop-up menu to a NSToolbarItem?

Hi, I'm trying to open a pop-up menu from a NSToolbarItem. I tried following this example but I can't use that class method because NSToolbar and NSToolbarItem inherit from NSObject and not from NSView. Apart from creating a custom view, what is the best way to open a pop-up menu from a NSToolbarItem? ...

NSToolbarItem image scaling

Why is this happening: As you can see, in the "Allowed Toolbar Items" the image looks fine for the "PHP" toolbar item, and when its actually in the toolbar, it scales weirdly. Thanks ...

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. Thanks in advance ...

How do I use an NSProgressIndicator as the view of an NSToolbarItem and have it show in the customisation sheet?

I have an NSToolbar set up in my app. It was created in IB. One of the toolbar items uses a spinner-style NSProgressIndicator as its view, the rest are images. When the toolbar's customization sheet is showing, the spinner does not show in the sheet. I initially thought that this was because the spinner's -displayedWhenStopped was set ...

NSToolbar example for Mac OS X 10.5.8

Hi, Can any one give a link to sample example for NSToolbar for MAc OS X 10.5.8. I had checked with the apple sample iSpend and others, but they are all for Mac OS X 10.6. Thanks in advance. ...

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 help me with detecting the hovering over the NSPanel, and showing and hiding the NSToolba...

NSButton in NSToolbarItem (setView) when clicked in "Text only" forces mode to "Icon and Label"

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 well except for when a user sets the toolbar to "Text only" mode. When he then clicks the button the toolbar will enable "Icon and Label" on it...

NSToolbar on bottom of window

How do i put an NSToolbar on the bottom of a window. I need to modify a program that has a toolbar on the top of the window and that needs to go on the bottom now. ...