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
0
votes
1 answer

Error when clicking into a programmatically-defined NSPopUpButton

This error happens only certain times (after creating a new document). If I save and re-open, it works. Any idea? Have someone had the same error? 2013-03-23 11:36:52.977 Demiurge[97164:303] *** -[__NSPlaceholderDictionary…
berfis
  • 417
  • 4
  • 17
0
votes
1 answer

How to make NSPopUpButton accept firstResponder status?

I have an NSPopUpButton and even a simple subclass of NSPopUpButton. In the subclass I have: - (BOOL)acceptsFirstResponder { return YES; } - (BOOL)refusesFirstResponder { return NO; } Now it's easy enough to tell the window to make the button first…
uchuugaka
  • 12,679
  • 6
  • 37
  • 55
0
votes
0 answers

Populating NSPopupButton with Core Data Entity plus a menu Item

Is there a way to put the list of a core data entity into a NSPopupButton and additionally put a menu item there? I have two core data entities, say Person and Car. A Person has many Cars (relationship). On a sheet the user should be able to pick a…
0
votes
1 answer

Can an NSPopupButton selection be highlighted?

I'm using an NSPopupButton in my OS X app to present the user with a list of choices. I'm populating it like this: [baudButton removeAllItems]; [baudButton addItemWithTitle:(@"Baud")]; [baudButton addItemWithTitle:(@"600")]; [baudButton…
Mike
  • 301
  • 4
  • 16
0
votes
1 answer

sort NSPopUpMenu items alphabetically

I want to sort the NSMenuItems of a NSPopUButton alphabetically. I checked the cocoa reference and i can't find a function that does this. Am i missing something or i have to write my own sorting function? Thanks in advance
ozmax
  • 470
  • 6
  • 17
0
votes
1 answer

NSProgressIndicator inside an NSPopupButton

I’m trying to figure out how to get a spinner to animate on an NSPopupButton’s menu item. I can’t get the spinner to animate. It appears but it doesn’t do anything. So far what I have is, I’ve added the spinner to the menu item like so: _spinner =…
JPC
  • 8,096
  • 22
  • 77
  • 110
0
votes
1 answer

Many-to-Many entities and NSPopUpButton

all. Entities: [Library {title}] <-->> [Book {title}] <<-->> [Author {name}] Controllers: NSArrayController [Library] => {Entity: Library} NSArrayController [Book] => {Entity: Book, ContentSet: Library, books} NSArrayController [Author] => {Entity:…
iTux
  • 1,946
  • 1
  • 16
  • 20
0
votes
1 answer

Add NSTableView data to NSPopUpButton items

I have a NSTableView where items can be added and deleted. Once items have been added to the table, I would like those items to also show as items for an NSPopUpButton. I tried the addItemsWithTitles: method but it gives me an error. #import…
wigging
  • 8,492
  • 12
  • 75
  • 117
0
votes
1 answer

How do I make the pop up button taller in Xcode?

When creating a desktop application, I have created a Pop Up Button using interface builder: However, when I go on size inspector, the box for changing the height is greyed out: Even if I change the font, the button itself won't get any…
math4tots
  • 8,540
  • 14
  • 58
  • 95
0
votes
1 answer

Basic IBAction function questions with textfield and NSPopUpButtonCell title

I'm just getting the basics down for objective c. I want to create a textfield whose string is the same as the title of the dropbox cell I choose. I have: - (IBAction)dropbox:(id)sender{ NSPopUpButtonCell *sampleCell = [sender selectedCell]; [self…
Nth.gol
  • 746
  • 9
  • 20
0
votes
2 answers

Set contents on NSTableViewCell depending on NSPopUpButton

i was just wondering how to set a NSTableCellView to show a specific string depending on what option a user selected from a NSPopUpButton, any and all help would be greatly appreciated… I would like to do this without using binding also
-1
votes
1 answer

Can't take focus off NSTextField and select other NSTextFields

I am having a bit of a problem with the UI/data entry part of my macOS application. In my application I have 6 NSTextFields, 1 NSDatePicker and 1 NSPopupButton. After typing in one NSTextField (specifically the one assigned to an outlet called…
-1
votes
1 answer

Prevent NSPopUpButton to open its menu

I need to prevent the popup's menu to be opened when some conditions are met, so I implemented "willOpenMenu" to know when the menu is about to be opened: class MyPopUpButton: NSPopUpButton { override func willOpenMenu(_ menu: NSMenu, with…
Mike97
  • 596
  • 5
  • 20
-1
votes
1 answer

NSPopupButton in NSTableView with Binding

I hope many of us have same problem of binding to work, specially nested binding. Scenario : I have a class Person, with name and role properties. Roles will come from other source. Person Class: @interface Person : NSObject @property (strong)…
Anoop Vaidya
  • 46,283
  • 15
  • 111
  • 140
1 2 3
11
12