Questions tagged [nspopupbuttoncell]

The NSPopUpButtonCell class defines the visual appearance of pop-up buttons that display pop-up or pull-down menus.

The NSPopUpButtonCell class defines the visual appearance of pop-up buttons that display pop-up or pull-down menus. Pop-up menus present the user with a set of choices, much the way radio buttons do, but using much less space. Pull-down menus also provide a set of choices but present the information in a slightly different way, usually to provide a set of commands from which the user can choose.

The NSPopUpButtonCell class implements the user interface for the NSPopUpButton class.

Note that while a menu is tracking, adding, removing, or changing items on the menu is not reflected.

MORE: NSPopUpButtonCell Class Reference

45 questions
0
votes
1 answer

Cocoa NSPopUpButtonCell not displaying selected value

Background I have an NSTableView with 3 columns, one of them has an NSPopUpButtonCell. I have been unsuccessful at using data bindings to populate the cell data, as such I am now trying a new approach by setting values programmatically with…
0
votes
1 answer

How do I force an NSPopUpButtonCell to redisplay itself?

I'm creating a custom subclass of NSPopUpButton and NSPopUpButtonCell to display a lone icon on top of the button instead of the usual text. To do this I'm overriding - (void)drawInteriorWithFrame:(NSRect)cellFrame inView:(NSView *)controlView in…
Redwood
  • 66,744
  • 41
  • 126
  • 187
0
votes
1 answer

NSPopupButtonCell listen for selected index changed

I have the following requirement and struggle to implement it: I have an NSTableView that is bound to an Array. One column of the table is a NSPopupButtonCell. Everything works with the NSPopupButtonCell writing data back to the underlying array and…
Mozzak
  • 201
  • 3
  • 16
0
votes
1 answer

Directly accessing the NSPopupButtonCell of an NSPopupButton (Cocoa OSX)

I know this is not normally recommended but I really need to access the NSPopupButtonCell of NSPopupButton. Is there a way to do this?
Mike2012
  • 7,629
  • 15
  • 84
  • 135
0
votes
1 answer

NSPopUpButtonCell error when embedded in an NSTableColumn that is bound

When binding cells in my NSTableView of type NSPopUpButtonCell I got an error [ valueForUndefinedKey:]: this class is not key value coding-compliant for the key value. The reality is that I am simply after the contents of the…
0
votes
1 answer

Populating an NSPopUpButtonCell with string values

I am trying to populate a NSPopUpButtonCell with a list of strings. In -(init), I populate an NSArray with the values I want in the PopUp Button. How do I connect this to the NSArrayController I added in IB? Does my app delegate need an IBOutlet…
user253667
0
votes
0 answers

NSPopUpButton is not updated with image when an NSMenuItem is selected

I am having an NSPopUpButton with pullDown and added few menu items(image and title) to the menu and added that menu to the Button cell. Initially I am assigning the First menu item of the menu to Button cell to display in NSPopUpButton. When I…
Monish Kumar
  • 2,788
  • 4
  • 38
  • 54
0
votes
2 answers

Programmatically instantiating a NSPopUpButtonCell in Cocoa OSX

I have an openGL GUI interface and I need to have a popup menu that will be called when this a certain button is pressed in my openGL display. I want to display a menu similar to the one that pops up when you press an NSPopUPButton but I cannot use…
Mike2012
  • 7,629
  • 15
  • 84
  • 135
0
votes
1 answer

How to use NSDateFormatter with NSPopUpButton

I have an NSPopUpButton's content bound to an Array Controller of "Meeting" entities and it's content value bound to the same array controller, but to the "date" model key path. Everything works fine. But I'd like to format the way the date is…
Johannes Fahrenkrug
  • 42,912
  • 19
  • 126
  • 165
0
votes
1 answer

Filtering entries from a Core Data entity that appear in an NSPopUpButton list

I'm familiar with how to feed data from one Core Data entity into an NSPopUpButton item so that it can be selected for another. Bindings like so: For the values themselves: -> ValueSelection.Content Bind To: Value Source Entity Controller…
Kaji
  • 2,220
  • 6
  • 30
  • 45
0
votes
1 answer

Custom NSPopupButtonCell in NSTableView

I am trying to create a custom popup menu in a tableview. As I understand it I can should be able to do so by calling the [NSPopupButtonCell setView:myView] method passing in the custom view (which is just a NSView with an NSOutlineView in it). So…
Duncan Groenewald
  • 8,496
  • 6
  • 41
  • 76
0
votes
1 answer

Setting Selected Index of NSPopUpButtonCell in NSTableView

I populate a column in an NSTableView with NSPopUpButtonCell instances (just dragged such a cell to a column in IB). Everything works fine, except for one thing : when I try to set the selected item index of one of the NSPopUpButtonCell instances by…
Fatso
  • 1,278
  • 16
  • 46
0
votes
1 answer

Custom NSPopUpButtonCell outlet / bindings

I'm having a problem with a custom NSPopUpButtonCell in a table that's instantiated when the table view is populated via bindings and a NSArrayController. The pop up button cell is created but when attempting to access the outlet by overriding the…
Jay
  • 6,572
  • 3
  • 37
  • 65
0
votes
1 answer

NSPopupButton content binding to NSAttributedString

I've got a NSArrayController dynamically populating a table with a bunch of columns, one of them has a popup button. The content of the popup button cell needs to use NSAttributedString as I need to display a scientific variable with subscript (X1…
Jay
  • 6,572
  • 3
  • 37
  • 65
0
votes
2 answers

NSPopUpButtonCell indexOfSelectedItem always returns 0

I have a NSTableView with each cell containing a NSPopUpButtonCell. I have set the NSPopUpButtonCell 's action to a method that simply checks for the selected index (so that this can be saved and the table reloaded). thePopUpButtonCell.action =…
Jack Humphries
  • 13,056
  • 14
  • 84
  • 125
1 2
3