Adding menu to your Mac apps in Xcode [duplicate] - xcode

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
How does one add additional items to NSMenu in Interface Builder?
There's something that blocks me from doing my project in mac. How can I add or create additional menu to my app?
The defaults are file, edit, help, etc. but how can I add my custom menu?

You can drag and drop menu items to and from the main menu in Interface Builder.

Related

How to add a UIImageView to a storyboard in Xcode 12? [duplicate]

This question already has answers here:
Where did the Object Library go in Xcode 10?
(6 answers)
Closed 1 year ago.
Very basic question: How do I add a UIImageView to a storyboard in Xcode 12? I have an existing project and I want to add images to it. I'm new to Xcode.
I gather I need to use Interface Builder Xcode 12. This tutorial for Xcode 10 shows how to add images to Images.xcassets but assumes I know how to add an UIImageView.
The tutorial shows a library of widgets displayed in the bottom right:
But I don't have that:
At the end, it mentions:
Media Library pop up opened by hitting the keys "command", "shift", and "m" at the same time Add image asset to launch screen Xcode 10
But that key combo does nothing for me.
Turns out there are three solutions:
Command-Shift-L is the new shortcut to open the media library. Seems like this changed in Xcode 11?
The + icon shown in the screenshot.
View > Show Library

Drag and Drop window in Xcode [duplicate]

This question already has answers here:
My library pane is missing, how to get it back
(3 answers)
Closed 4 years ago.
I'm trying to drag an UIButton to my View, but the view with the Drag and Drop Function isn't there, where it should be?
I'm a absolutely beginner.
I have the Xcode version 10.1 beta 2
If you are trying to place a button in your View Controller, simply tap the top icon that looks like an old iPhone button and drag in the button:
You can also use keyboard shortcuts:
Use ShiftCommandL to show the Object Library, or use Option with the shortcut to open the Object Library.
In XCode 10 they have been moved, click on the first top rounded button (near the show standard editor) of your picture or use the shortcut ⇧+⌘+L to open the library and ⇧+⌘+M to open the media.

How to customize the full page of a listpicker? [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
ListPicker FullMode Selected Item Color
I've a long list of things loading from a listpicker, mostly "useless".
Is there the possibility to add a button on top of the full page opened when I click the listpicker (so when I click on it I only show the most useful things?
Thanks a lot!
In order to do that you will have to create a copy of the ListPickerPage.xaml file from the Silverlight for Windows Phone Toolkit in your application, change it to meet your requirements, and then on your ListPicker control set the PickerPageUri proprety to the new ListPickerPage.xaml

How to quit a wp7 app? [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Windows Phone 7 close application
I have an app which needs quiting from the MainPage but just using NavigationService.GoBack() won't work when another screen has navigated to that main page as I don't want the ability to go back to that previous page.
Would I have to set a variable in App.xaml.cs called backToBeginning and all the onnavigatedto callbacks will GoBack() if that is set? or is that too messy?
WP7 does not support exiting of apps. Just let the user do it with the back button.
Currently, there is no way to achieve this. What you have described is really needed in the Music+Video hub, but due to inability to to it with the way navigation in WP7 is organized, even Microsoft had to sacrifice the functionality of a very important build-in application.

Interface Builder Zoom in Zoom Out [duplicate]

This question already has answers here:
Cannot zoom in and out of nib in the new Interface Builder
(7 answers)
Closed 9 years ago.
Is there a way to zoom in/zoom out in the Interface Builder within Xcode 4?
The current (very annoying) situation is that you can zoom in storyboards, but there is absolutely no way to zoom in a xib editing window.
XCode 5 still allows zoom in storyboards only. This is their way of telling us we should be using storyboards.
Its just never going to be possible to zoom in on a xib file.
Edit: Also possible: you sacrifice resolution but every mac can zoom on any part of the screen by holding Control+Scrolling Up/Down.
Edit 2: Accept it people, you can't zoom on xib files. But you CAN zoom your whole mac display if you prefer to view the same pixels in bigger format
As of now, no. They should be adding one in xcode 4.0.3.

Resources