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

Delaying the opening of a NSPopUpButton

I've encountered the same problem as this one: This one. It has never been answered so far. In two words: When you place a NSPopUpButtonCell in a NSTableView, the popUp opens before the selection in the tableView has changed. If the menu of the…
1
vote
1 answer

NSFormatter used with a NSPopUpButton

I have a NSPopUpButton whose content values are bound to an NSArray of NSNumbers. The NSPopUpButton correctly displays the array of numbers in it's popup-menu. However, when I change the selected value, I receive a message: HIToolbox: ignoring…
CJ.
  • 1,034
  • 1
  • 9
  • 20
1
vote
0 answers

NSPopupButton bound to NSArrayController not updating

I've got an NSPopupButton bound to an NSArrayController. (Man, that was harder than I thought it would be!) I have an NSArrayController bound to an NSMutableArray via the NSArrayController's "Controller Content" binding. The "Content" and "Content…
1
vote
1 answer

Using Array Controllers to restrict the view in one popup depending on the selection in another. Not core data based

I am working on an app that is not core data based - the data feed is a series of web services. Two arrays are created from the data feed. The first holds season data, each array object being an NSDictionary. Two of the NSDictionary entries hold the…
1
vote
1 answer

Programmatically adding menu + items to NSPopupButton

I have a custom class "BackupIncrement" which gets its data from an sqlite3 database, and works just fine. I also have an NSPopUpButton called "pubDefaultIncrement" which is hooked up in IB. The end result is that I would like to have the…
EchoBinary
  • 125
  • 1
  • 2
  • 9
1
vote
1 answer

Avoid "Can't make ...class... into type number." error

property myValue : "" property myPopUp : missing value on applicationWillFinishLaunching_(aNotification) tell standardUserDefaults() of current application's NSUserDefaults registerDefaults_({myValue:myValue}) set myValue to…
subdiox
  • 387
  • 2
  • 14
1
vote
1 answer

NSPopupButton with Live Fonts (Styled Text)

I wonder if it's possible to show live fonts in a popupbutton control (NSPopupButton)? currently, I load a popupbutton with a list of fonts available in the following manner. NSArray *familyNames = [[NSFontManager sharedFontManager]…
El Tomato
  • 6,479
  • 6
  • 46
  • 75
1
vote
0 answers

NSPopupButton Default State and Bindings

I have a NSPopupButton tied to an array controller for content/value and I did have it tied to a property in the view controller.. all was working just fine. Then I needed to have a default value for the popup which is in Shared User Defaults.. this…
Ian33
  • 81
  • 1
  • 4
1
vote
1 answer

Binding NSPopUpButton to an NSArray

I want to populate an NSPopUpButton with an array of NSStrings. I also want to be able to set the selected item in the NSPopUpButton as well as get the selected value. Is there a way to do this using bindings? Here's what I have that only has the…
FlameCoder
  • 49
  • 1
  • 8
1
vote
0 answers

NSView alignmentRectForFrame: on OS X 10.6

Since 10.7 NSVeiw has new method called alignmentRectForFrame: that returns NSRect of actual content (excluding borders, shadows, reflections ...). Is there an alternative methon or workaround on 10.6? Details: I am creating NSPopUpButton with a…
AlexP
  • 1,416
  • 1
  • 19
  • 26
1
vote
1 answer

NSPopUpButton Not Selecting Right

I'm using this code to add a popup button to an NSView : if (popupButton) [popupButton release]; popupButton = [[NSPopUpButton alloc] initWithFrame:NSMakeRect(0, 0, SHEET_WIDTH/2, 32) pullsDown:true]; NSMenu *menu = [[NSMenu alloc] init]; for…
Fatso
  • 1,278
  • 16
  • 46
1
vote
0 answers

NSArrayController, NSPopupButton proper bindings

I just started Mac programming coming over from iOS and was playing around with bindings. I'm trying to make a simple directory popup that shows a history of recently selected directories and last element would read other... which will open the…
1
vote
2 answers

Focus ring on NSPopupButton doesn't appear on pressing tab

I have a couple of NSPopupButtons on my view and they are defined as a newKeyView after one of the text fields. The problem is that somehow they are not getting the focus ring when pressing the tab button comes to them, like they are ignored. What…
Nava Carmon
  • 4,523
  • 3
  • 40
  • 74
0
votes
1 answer

Set NSPopUpButton at first launch

I have a NSPopUpButton but at first time launch this does not set correctly the first value. I have set awakeFromNib but the NSPopUpMenu is empty. Only the second time and the next it works correctly. Thanks in…
Joannes
  • 81
  • 1
  • 11
0
votes
1 answer

Core Data Programmatically Adding a to-many Relationship

I have an entity Item, and an entity Type (that has an attribute "Name") in a to-many relationship with Item. (Ie: Item: Brown Table, related to Type with Name "Coffee Table"). I've programmatically added new Items fine, using, for example:…
D'Arcy Rail-Ip
  • 11,505
  • 11
  • 42
  • 67