Questions tagged [nspopupbutton]

The NSPopUpButton class defines objects that implement the pop-up and pull-down menus of the graphical user interface.

The NSPopUpButton class defines objects that implement the pop-up and pull-down menus of the graphical user interface. An NSPopUpButton object uses an NSPopUpButtonCell () object to implement its user interface.

Inherits from NSButton : NSControl : NSView : NSResponder : NSObject.

References:

179 questions
2
votes
0 answers

How to make height NSPopupButton to fit for item automatically

Please have a look at the picture, sometimes when pull down the button, the last item will only display half height. Anyone know how to make it to show full. For example, only show the "egg" and then the arrow; or show full height of the last item…
jimwan
  • 1,086
  • 2
  • 24
  • 39
2
votes
1 answer

Binding NSPopUpButton to core data hangs Xcode build

My environment: Mac OS X v 10.10.4 Version 6.4 (6E35b) My Project: Mac app using Swift 1.2 with storyboard A bit of background: I got an NSTableView with multiple columns all hooked into an NSArrayController, which in turn, is hooked up to core…
buzo
  • 81
  • 3
2
votes
1 answer

NSPopUpButton in a toolbar with fixed image similar to Pages.app UI

The toolbar in Pages (Numbers, Keynote) has a NSPopUpButton with a fixed image (irrespective of the menu that is selected). Using view debugging it turns out that this is a standard NSPopUpButton with a fixed image. According to the NSPopUpButton…
Daniel Farrell
  • 9,316
  • 8
  • 39
  • 62
2
votes
1 answer

Disable/Customize NSPopUpButton animation in 10.10 Yosemite

Context: In OS 10.10, Apple added some new subtle animations to various controls. For example, when you check a checkbox, the blue "checked" state now animates in by expanding outward from the center of the checkbox rather than abruptly switching to…
Bryan
  • 4,628
  • 3
  • 36
  • 62
2
votes
1 answer

Setup a default item to be displayed by a NSPopupButton using Interface Builder

I am new to cocoa development and I generally don't use interface builder. I have this NSPopupButton with several items. When I run the application I see the control. The first option is displayed. But I want the third option to be displayed…
Duck
  • 34,902
  • 47
  • 248
  • 470
2
votes
1 answer

cocoa: How do I suppress NSPopUpButton automatic selection/synchronization? NSArrayController and NSMenu do not work

I have a NSPopUpButton. Whenever I add or remove items to it, the first item gets automatically selected. I want to inhibit this; I want the NSPopUpButton to appear with nothing selected, and to not select anything itself until the user selects…
andlabs
  • 11,290
  • 1
  • 31
  • 52
2
votes
1 answer

NSPopUpButton: events from menu tracking?

Is it possible to detect actions that tell my controller when the user is mousing (or otherwise perusing) the items in an NSPopUpButton? I only seem to be notified on a new selection and I'd like to be notified as the user is rolling over any item…
TomH
  • 2,950
  • 2
  • 26
  • 49
2
votes
2 answers

How do I make an NSPopupButton that has a menu with images AND text?

I have a list of applications and I'd like to make an NSPopupButton that shows a menu of application names with their icon to the left of each item. I've been able to bind the NSPopupButton to my array of items, but there isn't a binding entry for…
Michael Bishop
  • 4,240
  • 3
  • 37
  • 41
2
votes
1 answer

NSPopupButton,list of mounted Volumes

all. I'm new in objective-c, and my question regard how to connect my PupupButton to see a list of my volumes as attached USB hard drive etc...to be selectable: MyController.h @interface MyController : NSWindowController
Mike97
  • 596
  • 5
  • 20
2
votes
2 answers

How to avoid Xcode 4 adding a width constraint to an NSPopUpButton?

The problem here is how to add an NSPopUpButton in Xcode 4's Interface Builder pane without IB also adding an (unwanted) width constraint. In Interface Builder in Xcode 4.3 on Lion using Auto Layout, if you add a normal button to a view, Xcode will…
Monolo
  • 18,205
  • 17
  • 69
  • 103
2
votes
2 answers

Setting Actions for PopUpButton

I have created an NSPopUpButton programmatically and I made an array for my choices, how can I create a setAction for each individual array choice? Thanks! NSRect buttonRect = NSMakeRect(1705, 145, 78, 50); //Button Array. When I pick the…
Grant Wilkinson
  • 1,088
  • 1
  • 13
  • 38
1
vote
2 answers

NSButton draw alternate image on click

I know this is probably super easy, but I'm having a hard time wading through header files and could use some guidance. I have an NSPopUpButton defined in a nib with a menu attached to it. I have defined it in the nib to be "Pull Down" type with no…
Ash Furrow
  • 12,391
  • 3
  • 57
  • 92
1
vote
0 answers

How to create two cascade NSPopUp button with Core-Data binding

need some help. I'm already add two popup button, and two NSArrayController. first is parent (named as Country). second is child (named as City), with content set bind (CountryController.selected.cities) In the first PopUpButton (Select Country)…
iTux
  • 1,946
  • 1
  • 16
  • 20
1
vote
2 answers

How do I change the short display form of an NSMenuItem in an NSPopUpButton?

I have an NSPopUpButton with a long menu of items, some of which are quite wide - wider than the button's closed width. Some of the menu item titles are like so: "Start of a really long name not that interesting (important info)" When the menu is…
Mira
  • 161
  • 7
1
vote
0 answers

NSArrayController subclass setFetchLimit in fetchWithRequest

I have a NSPopupButton that is bound to a CoreData backed NSArrayController. I subclassed the NSArrayController to set a fetchLimit and SortDescriptor. The problem is the following: The FetchLimit only applies on the initial load. When entries are…
ovm
  • 2,452
  • 3
  • 28
  • 51