I am trying to interface with a cocoa popup menu from an OpenGL button. The actual button needs to be in OpenGL and I cannot stick an actual Cocoa button in its place but when this button is pressed I would like for a Cocoa menu to popup just like the one that comes up when you press the nspopupbutton. It seems that there is no way to ...
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 data to be displayed in the popup ('seasonName') and an id ('seasonID') that acts as a p...
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 exception 'Unacceptable type of value for attribute: property = "tempo"; desired type = NSNumb...
This question is similar to this one: http://stackoverflow.com/questions/821363/how-do-i-use-an-nsformatter-subclass-with-an-nspopupbutton
As mentioned in that question, it seems like the 'formatter' used by the cell of a NSPopUpButton doesn't seem to work. I'm wondering if this is expected, or if there is actually a purpose to setting ...
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 an image. I thought I could put a cell in there and bind the cell as an image and as text,...
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 in the menu.
thanks
tom
...
Hi,
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 can't seem to find a way... any ideas?
Thanks,
Marcus
Edit:
I thought this needed som...
As docs say it's impossible to add two menu items to NSPopUpButton if they both have the same title. I was trying to add menu items to [popupButton menu], but with no luck. I was also trying to create a new menu, add items to it and then use [popupButton setMenu:newMenu], but no. Menu always display only one item per name.
But I know it...
my popUpButton is in a window with a group of popUpButtons. If I try to click the 2nd of 4 vertically aligned buttons then the popdown menu will not appear. If I select the 3rd or 4th then the 2nd will now be selectable.
throughout my code the setEnabled on that popUpButton is :YES.
ideas on where to look in my controller?
This is a...
I am trying to make a popup button that always displays a + as its image and when you click on it, a context menu pops up that will allow you to decide what type of object you want to add. Is there anyway to do this using an NSPopupButton? I saw in the specs for NSPopupButotn that the method SetImage has no effect so it seems that this...
I know this is not normally recommended but I really need to access the NSPopupButtonCell of NSPopupButton. Is there a way to do this?
...
I've got an application that needs to run on os x 10.6 and 10.5; there is an NSTableView that contains an NSPopUpButtonCell that is populated using an array controller. When a new item is created in the table I need to pop up the menu for the row entry automatically.
I was using the method performClickOnCellAtColumn:row: which produces...
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. However, even though that item is being displayed, calling -selectedItem returns (null). ...
Hello,
I want to achieve the following:
There is a list of persons (name, birthday, photo)
I want to select a person name in the NSPopUpButton and show
other details below.
How can I do it using bindings only?
I use NSArrayController to populate NSPopUpButton.
I use NSArrayController.selection. to populate birthday and photo fields.
B...
Hi,
I register for notification NSPopUpButtonWillPopUpNotification in order to change the pop up menu before it is shown. The new pop up menu consist of running Application list with respected icons. When the application is selected, it calls a @selector method.
After selection completes, the button have the image of the selected appl...