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
1
vote
0 answers

NSPopupButton binding - distinct display from value

On my popup button I'm trying to figure out how to get/select via a property of the object. I have a 'Producer' core data entity, and it has a name (String) and ident (Int) value. I want to show the name, but get/set the selection based on…
Gargoyle
  • 9,590
  • 16
  • 80
  • 145
1
vote
1 answer

Using full width of NSPopupButton for text, no arrows

I like to display an NSPopupButton that has no arrows. I like to use that space where the arrows would be for the label text. That doesn't seem to work by default. Here's the text (which is "01234567890") with the arrows enabled: And here with no…
Thomas Tempelmann
  • 11,045
  • 8
  • 74
  • 149
1
vote
3 answers

How to display image and text in NSPopupButton's items

I am working on an application and I am using NSPopupButton to have drop-down list. I would like to know how could I display image + text in every item when I expand the list. I have seen that in the interface there is addItemWithTitle: but it takes…
RuLoViC
  • 825
  • 7
  • 23
1
vote
1 answer

How can I use popup button to switch the content of tableview (swift, cocoa)?

I have popup button and nstableview. When I switch items in popup button the content of table should change. I have for each item in popup button the arrays which should be displayed in nstableview. I guess in two…
VYT
  • 1,071
  • 19
  • 35
1
vote
0 answers

NSPopUpButton not updating selectItem

I have a NSPopUpButton where I'm preselecting item in the menu and is been selected but is not showing as selected. Here is my code: [self.categoryMenu selectItemWithTitle:@"cineRush"]; Here is how is showing: But here is how show if I click on…
user2924482
  • 8,380
  • 23
  • 89
  • 173
1
vote
2 answers

Separate NSPopUpButton content from label while using bindings

I have an NSPopupButton whose content is bound to an NSArray, let’s say the array is @[ @"Option 1", @"Option 2" ]; Its selected object is bound to User Defaults Controller, and is written to a preference file by the user defaults…
magiclantern
  • 768
  • 5
  • 19
1
vote
1 answer

What type of rollover menus does Apple use in their Contacts App?

Does anyone know how Apple creates their rollover menus in the Contacts "business card" view*? I am trying to replicate that interface in an App I'm writing, but I'm not sure how to get there via XCode. I'm currently running Mavericks... Thank you…
S Jensen
  • 17
  • 5
1
vote
1 answer

Multiple Selection using NSPopButton mac OS X

I am working on developing a control that behaves same as NSPopUpButton , but should have a custom view as its MenuItem.In the custom view , I will have to show some texts (labels) and a tableView. I was able to create a NSPopUpButton with a custom…
1
vote
1 answer

Setting a default selection for an NSPopupButton?

Is it possible to set a default selection on an NSPopupButton? I have one that allows the user to select the type of server they want to set up, but since an NSPopupButton always shows the first item, they may ignore it if that's the type they want.…
vilhalmer
  • 1,149
  • 3
  • 11
  • 23
1
vote
1 answer

How to bind view-based NSMenuItem in a NSPopUpButton's menu?

It it trivial to set up an NSArray containing strings and connect (via an NSArrayController) the content array to an NSPopUpButton (a nice answer for this standard problem is here, NSPopUpButton + Bindings + Show All Option). I have a NSPopUpButton…
1
vote
0 answers

How Can I load XML Data into an NSPopupbutton in cocoa?

I have a NSPopupButton in my view that I would like to fill with various country names. I have an XML file that has all the various countries I need to support which is in a format like so
Stavros_S
  • 2,145
  • 7
  • 31
  • 75
1
vote
1 answer

Can multiple NSArrayControllers control the same array?

I want to keep several NSPopUpButtons synchronised with the same model object. I'm just getting familiar with bindings and have implemented the following scheme. Is this a terrible idea? Here each NSPopUpButton has their own NSArrayController. Each…
Daniel Farrell
  • 9,316
  • 8
  • 39
  • 62
1
vote
2 answers

Getting NSPopUpButton from NSMenuItem

My application uses the -validateMenuItem: method for validating menu items. But I need to validate different menu items depending on what popup's there in. I was hoping for a way to get the tag of the popup, but after looking through the docs I…
BeechWood
  • 26
  • 4
1
vote
1 answer

NSPopupButton not updating when using setValue:forKey: against it's CoreData bound field

I'm working on a CoreData / Document based app. In one area of the UI I've setup a view-mode table with various columns. One column has an NSPopupButton in it with the Selected Index binding setup as Table Cell…
user3282261
1
vote
1 answer

xcode not recognizing NSPopUpButton as a class

I'm trying to implement an NSPopUpButton but Xcode does not recognize it. After I type NSPopUpButton Xcode does not offer code completion and reports the problem "use of undeclared identifier". Is there a specific framework I have to add and if so…
rivtracks
  • 43
  • 7