nsmenu Questions
5
Solved
I am building a macOS-app using SwiftUI and the new App lifecycle.
I would love to change the contents of the “About Window” (that appears when you tap “About DemoApp” in the apps’ menu) but have n...
5
I am trying to change the titles of some of the items in my Cocoa app's main menu. I have tried setting them both within IB and also programmatically from my app's applicationDidFinishLaunchingWith...
Badenpowell asked 11/2, 2011 at 3:52
3
Solved
In my Mac OS X app I deleted all default menu items, added my own.
But in View menu at the bottom I can still see Enter Full Screen menu item, whilst in storyboard there is no such menu item.
I'v...
3
Solved
I didn't use storyboard and xib, just used only code.
I would like to add "Edit" Menu Programmatically. My Questions are
1) How to show "Edit" Menu / What codes need to input at comment Question 1...
Lightner asked 28/2, 2015 at 12:59
4
Solved
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 cre...
Loma asked 23/2, 2010 at 16:56
4
Solved
How can I change the height of an NSMenuItem? When I change the font of a menu, an NSMenuItem automatically resizes to just fit the title, leaving no space above or below the title. It looks very c...
Primero asked 3/8, 2013 at 10:7
1
Solved
I am building a macOS-app using SwiftUI and the new App lifecycle.
All the default macOS menu items (like cut, copy, paste) are already there after starting a new project but they’re greyed out. Ho...
Clywd asked 31/10, 2020 at 17:5
0
macOS 11 Big Sur in its current iteration (beta 1 through beta 6) has a bug/feature that makes it hard to have NSMenuItem with the custom view. Specifically, the custom view of an item won't get a ...
Reviel asked 7/9, 2020 at 10:10
7
Solved
My app has the default 'Help' menu. I have removed the 'Help' entry and added a Support entry that links to a forum on my website.
The help menu nib looks like this:
But once I have the app up ...
3
Solved
I'm facing a weird situation. I've got an NSMenu with a submenu in it. The submenu's contents are populated programmatically. In my validateMenuItem: method, I can see all items being checked (the ...
Coshow asked 3/3, 2013 at 10:24
6
Solved
I've got an app that uses a Toolbar in a NSWindow. I don't want users to be able to customize this toolbar for aesthetic reasons. In Sierra there's a new Menu option that gets inserted into "Menu >...
Rennes asked 8/9, 2016 at 20:21
4
Solved
How can I get the NSMenu or NSMenuItem for the application menu (the one in the menu bar next to the apple menu). It seems to be automatically created and independent from the NSMenu I set via NSAp...
2
Solved
My Mac app has an NSMenu whose delegate functions validateMenuItem and menuWillOpen are never called. So far none of the solutions online have helped.
It seems like I'm doing everything right:
T...
Nitrate asked 19/7, 2016 at 14:31
3
Solved
I'm writing a plugin for application - custom keyboard shortcut. I can traverse through its views.
I need to open popup menu, select item in it, then open its submenu and select some item in submen...
Lugger asked 5/2, 2014 at 16:58
4
Solved
I want to create an NSButton that sends an action when it is clicked, but when it is pressed for 1 or two seconds it show a NSMenu. Exactly the same as this question here, but since that answer doe...
5
Solved
I want to add a menu item into the application's main menu that will be used quite rare. I want it to be hidden by default and show it only when user hold down Option key. How do i do this?
It see...
1
Solved
I am trying to create a macOS menubar app which will have a text field as the first item. The textfield will serve as a search bar for filtering other items which will be displayed below it.
It sh...
1
I'm working on a menu bar app, and I'm setting a custom view using NSMenuItem's view property.
The view displays ok, but I'm unable to receive any kind of mouse click events for menu items that ha...
Omeromero asked 13/6, 2017 at 17:18
2
Solved
I am making a search field, which opens a NSMenu similar to Finder and Mail
The only problem, which drives me crazy, is that i cannot intercept the key events, once the menu is open
I even subcl...
Preceding asked 12/8, 2015 at 15:3
8
Solved
I have subclassed NSMenu and connected a bunch of NSMenuItem's via Interface Builder. I have tested via the debugger to see that they really get initialized.
The menu is set to not auto enable ite...
Quicken asked 20/2, 2012 at 21:26
1
I want to popup a NSMenu when the user right-clicks on a NSTableCellView within a NSTableView.
let cell = myTableView.make(withIdentifier: "myCustomTableCellView", owner: self) as! MyTableCellView...
Silvasilvain asked 27/1, 2017 at 22:10
1
I have:
NSStatusItem with a custom view (scrolling text in a secondary thread), with the secondary thread updating the internal state and notifying the main thread with setNeedsDisplay.
On mouseD...
Stereograph asked 2/10, 2012 at 18:55
1
Solved
As of macOS Sierra the volume menu bar item provides a horizontal slider item to change the system's volume:
I'd like to adopt this concept for my own application and came up with the following ...
1
Solved
I am trying my hand at creating a Cocoa GUI app programmatically (i.e. without a nib file) using Swift 3. I've run into trouble getting the application's menus to show.
I would expect the below co...
0
The Problem:
on a full screen mac app, when you move the mouse pointer to the top, the mac menu bar will instantly drop down. I'd like to make an app which delays the showing of the menu bar by a c...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.