I want to restart after installation, so I added the attribute onConclusion = "RequireRestart".
It reboots after installation, but MacOS 11.0 (Big Sur) no longer displays the following message telling you to reboot before installation.
=====
When this software finishes installing, you must restart your computer.
Are you sure you want to install the software now?
=====
Is this a specification change in MacOS 11.0 (BigSur)?
How do I display a message telling me to reboot after installation on MacOS 11.0 (BigSur)?
Post
Replies
Boosts
Views
Activity
I have a question about Ventura's new feature "Stage Maneger".
"Stage Maneger" does not work for windows for which "NSFloatingWindowLevel" is set for WindowLevel.
Specifically, the window for which "NSFloatingWindowLevel" is set is not stored on the left side of the screen like other apps.
Is it the specification of "NS Floating Window Level"?
I am creating an app that runs on Mac using objective-c.
Since location information permission is required, I implemented the following.
// AppDelegate.m
#import <CoreLocation/CoreLocation.h>
- (void)getLocation {
CLLocationManager *locationManager = [[CLLocationManager alloc] init];
[locationManager requestWhenInUseAuthorization];
}
- (IBAction)buttonClicked:(id)sender{
[self getLocation];
}
Info.plist
<key>NSLocationUsageDescription</key>
<string>This app requires location information.</string>
What I'm hoping for is that when I run this app and press the button, I'd like to see an OS alert asking for permission to use location information, saying "***" would like to use your current location.
However, when I try it, no alert is displayed.
However, the app name has been added to the "Location Services" item in "Security & Privacy" in System Preferences.
How can I display alerts?
I am creating an app that runs on Mac using objective-c.
Since the app requires permission for location information, I used NSLocationUsageDescription to display an OS alert prompting the user to allow location information.
When built, the app displays an OS alert prompting the user to allow location information, as expected.
However, after signing this app, it no longer displays alerts.
The signature was added like this.
codesign --force --timestamp --options runtime --sign "SIGN" "AppName"
Why does just adding a signature stop the OS alert prompting the user to allow location information to appear?
Also, is there a way to display OS alerts even with a signature?
Install and launch a macOS app.
At that time, if the app requires permission to record the screen, the following dialog will be displayed from the OS.
Grant access to this application in Privacy & Security settings, located in System Settings.
Follow the instructions in this dialog and select "Allow" in the system settings screen.
Normally, after "Allow", the following dialog should be displayed from the OS.
"AppName" mac may not be able to record the contents of your screen until it is quit.
You can choose to quit "AppName" now, or do it on your own later.
But, it does not appear.
Why?
Is there some setting that needs to be done on the app side?