I saw this guide: http://vimeo.com/17110202
And now I want to upgrade this app and to use more options besides Menu.
I thought to myself that I want to build somthing like Spotlite ( same design )
But I dont know how to use more options except Menu.
Apple published a sample project that shows how to embed NSViews inside NSMenuItems. The basic idea is to send -[NSMenuItem setView:] in order to change the visual representation of a menu item.
As i read, it is not possible to change the view of a NSMenuItem in a StatusBar app
Related
Options Window
How can I connect a label, button, or other element from my Storyboard to my coding file in Xcode 13? When I first loaded Xcode, there was no storyboard file added to my project. I had to add one myself. Then, when I created labels and buttons on the Storyboard, it wouldn't allow me to connect to the coding file the way I used to (clicking Ctrl and dragging the label/button to the code). I feel like I'm missing something simple but I can't find any solutions online. Thanks in advance.
You have selected a Multiplatform template. This is only supported by SwiftUI.
Select a single platform template (iOS, macOS etc)
Does anybody know, how to change the appearance of the title bar and/or toolbar of a simple & small one-window cocoa macOS application without accessing the Xcode or installing third party applications? It's for a screen recording video project, I want to do.
I know, that there are possibilities within the applications info.plist (for example changing the app title inside the top macOS Menu Bar) but I would like to be able to change the apps window title itself and/or colors and/or fonts inside the window title bar or toolbar if possible.
Opening the app in another container window or via terminal or Applescript and adding custom parameters or even an overlay in the right position to change the styling would be okay if this is possible?
Can somebody point me in the right direction?
Thank you very much!
in short: Nibs
Nib File Viewer works until Xcode 10
saving, recompiling if possible
good luck
I duplicated a storyboard, and changed colors is all. What do I need to do to link my ViewController to use this other storyboard? thank you.
Select your project folder in the navigation window. Under the Deployment Info section, click on the "Main Interface" text field and select your alternate storyboard. This will set it as the initial interface at launch time. If you want to switch between the storyboards while the application is running, that's a little more complicated and not something I've had to figure out yet.
I am Trying to Create a NSComboBox like the image attached with the list of Fonts. Any body knows and custom special control is available.
I have kept the image in dropbox
I see you're new to SO. You say "I'm trying to create", what have you tried? In general on SO you should show what you've attempted, what did not work, what piece of information eluded you, etc.
Here's some information to get you started:
NSComboBox justs takes "objects" and says it will display "common value classes" (ref). Have you tried NSAttributedString?
NSFontManager has a method availableFonts
You can use those to quickly produce a menu of styled font names, it probably won't be what you want but it will be a start.
Note that on a Mac the recommended ways to select fonts are standard Font menus and the Font Panel (NSFontPanel), do you really want to mimic a Windows UI for a Mac app?
HTH
Swift 5.0 🔸
let fonts = NSFontManager.sharedFontManager().availableFonts();
//Then add this array to an NSComboBox component, programtatically or via XCode-Interface-builder
I'm currently working on my first iOS application to run on the iPad, and I've come across a problem. I have been asked to implement menu's similar to the ones in the default applications such as when you click on the "Calendars" button in the top left of the calendars app.
Only issue is, I cant seem to find a standard UI object that looks like these, with the arrow connecting the menu to the button etc. Is this a standard UI component that I should be able to use, or will I have to imitate them by creating a custom object?
Thanks for any help.
That is a UIPopoverController. There isn't an Interface Builder control for this. You need to create one programmatically:
UIPopoverController *popover = [[UIPopoverController alloc]initWithContentViewController:someTableViewController];
See the documentation for more information and sample projects, specifically ToolbarSearch: