My app is cross-platform and I don't use Xcode project.
All localization inside app is performed with an internal code and works fine.
There is a problem with localization in NSOpenPanel and NSSavePanel. They always appear on English and don't use macOS current language (French) of an user.
I added the following code to Info.plist :
<key>CFBundleLocalizations</key>
<array>
<string>en</string>
<string>fr</string>
</array>
But NSOpenPanel still appears on English.
I checked macOS TextEdit app which shows NSOpenPanel correctly with current OS language. Its Info.plist doesn't set any CFBundleLocalizations records. How this app tells macOS what language should be used for NSOpenPanel?
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Created
After restarting macOS opens Terminal app (which was opened before a restart). And Terminal ignores all custom global environments.
This bug exists in Big Sur and Catalina.
If close Terminal app and launch manually everything is OK.
I write custom global environments to environment.plist file which is placed in user's home folde > Library > LaunchAgents
and then loaded:
launchctl load /Users/myprofilename/Library/LaunchAgents/environment.plist
launchctl start /Users/myprofilename/Library/LaunchAgents/environment.plist
I need custom global environments to set a variable to my working directory which is used in compilation scripts.
How I can force HiDPI on external monitor 2560x1440 to use it as virtual 1280x720 in Big Sur?
RDM doesn't show any Retina resolution.
I tried to generate displayproductid-xxx.plist for my monitor using a script: codeclou.github.io/Display-Override-PropertyList-File-Parser-and-Generator-with-HiDPI-Support-For-Scaled-Resolutions/
But
ioreg -l | grep "DisplayProductID"
ioreg -l | grep "DisplayVendorID"
returns nothing.
Also I tried this script: github.com/xzhih/one-key-hidpi - doesn't work, too.
Note that this folder cannot be modified even when SIP is disabled: /System/Library/Displays/Contents/Resources/Overrides/
How to correctly install codesign certificates on second Mac?
I have first Mac where I successfully sign and notarize my apps for macOS outside AppStore.
On second Mac I downloaded existing "Developer ID Installer" and "Developer ID Application" certificates and installed in KeyChain. Also I downloaded and installed Intermediate Certificate.
When I try to sign anything on second Mac I see the error:
"error: The specified item could not be found in the keychain."
Also I have a file "CertificateSigningRequest.certSigningRequest" saved from first Mac. No idea how to use it.
What I missed in this nightmare to get it work? And keep codesigning on first Mac, too.
Hi,I have serious difficulties with offscreen rendering in Metal or macOS. I can't find any example/demo project with solely offscreen rendering without any MTKView on 2nd pass. Just rendering to a texture with copying to a bitmap in system memory.My code works strange, it returns a black picture on first run and starts to render frames only if I call rendering on timer event or on a button click. If I call rendering in a loop, it always returns a black picture.I have no problem with usual rendering with MTKView.