Post

Replies

Boosts

Views

Activity

How do I display the "You can choose to quit "AppName" now, or do it on your own later." dialog?
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?
1
0
322
Jul ’24
Alerts to allow location information do not appear when the Mac App's is signed
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?
2
0
611
Nov ’23
How to display an OS alert that prompts permission to use location information
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?
0
0
404
Nov ’23
How to display a message telling you to restart after installation on MacOS 11.0 (Big Sur)
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)?
0
0
377
Jan ’21