Post

Replies

Boosts

Views

Activity

Offscreen rendering examples
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.
2
0
4k
Jun ’20
Updating of a Metal texture in every frame
Hi, We need to update some managed texture from system memory to GPU memory in every frame. Metal. Problem: it seems that a texture still can be busy for rendering of queued frames and when we update it for next frame a previous frame can be rendered incorrectly (texture looks wrong). How I can guess when a texture is being completely processed and can be re-used again? I don't know how long a queue of frames in Metal rendering. It seems that DirectX can automatically create internal copies of a texture which we sent for rendering and we can start to modify the same texture for a next frame. How to do the same in Metal?
6
0
1.9k
Sep ’20
Install codesign certs on second Mac
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.
4
0
3.3k
Oct ’20
How to delete "Other" files in macOS? 120GB!
Hi, I have 120GB in "Other" storage on my Macbook 12 with Big Sur. I've read many articles with advices and have no clue where these 120GB? The following folders: /Applications/ /System /Users /Library In total use only 48GB from 250GB. But I have only 64 GB of free space. Where are other 120GB ?! Please don't advice to check Downloads, Trash Bin, Caches, etc. I already checked all these folders.
2
0
446
Nov ’20
Enable HiDPI for external monitor in Big Sur
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/
26
1
31k
Dec ’20
Remove icon in Dock from recent apps
Hi, I need to hide my app icon in Dock after closing the app. By default Dock shows icons of recent apps. I can't use LSUIElement because I need this icon in Dock when the app is running. Also my app uses fullscreen mode. Also NSApp.setActivationPolicy(.accessory) doesn't fit my needs, because I need the main menu and icon when app is running.
0
0
370
Dec ’20
Bug with Terminal and global environments
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.
1
0
907
Dec ’20
Localization problem in NSOpenPanel
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?
4
0
1.4k
Jan ’21
Notarization of two apps - wrong result
When I notarize two apps the same time I get wrong DMG image for second app. I use a command for App1 and then for App2: xcrun altool --notarize-app --primary-bundle-id app1id -u my@email.com -p xxxxxxx --file App1.dmg xcrun altool --notarize-app --primary-bundle-id app2id -u my@email.com -p xxxxxxx --file App2.dmg Then I get an email with a successful notarization, I call xcrun stapler staple App1.dmg xcrun stapler staple App2.dmg DMG with App1 is correct. Signed and notarized. But after stapling DMG with App2 is wrong - it includes App2 and App1 (!) and DMG has increased file size! Of course, I've sent for a notarization only a single App2 in a DMG. What I'm doing wrong? This problem doesn't appear if I send App2 for notarization AFTER successful notarization of App1 and stapling DMG image. macOS 11.1 Big Sur, Apple DTK.
2
0
962
Feb ’21
Checking DMG notarization. Rejected, but works fine
I have a misterous problem with checking DMG notarization. It fails: bash-3.2$ spctl -a -t open --context context:primary-signature -v MyApp.dmg MyApp: rejected source=no usable signature However this DMG installs fine on Big Sur 11.2.2, macOS allows to run this app, and checking of notarization for installed app was passed: bash-3.2$ spctl -a -v '/Applications/MyApp.app' /Applications/MyApp.app: accepted source=Notarized Developer ID I checked other downloaded apps (Intel or Universal). Some DMG files pass DMG notarization (for example, Audacity), and some fails (PerfectTablePlan). Why? For my app (Universal) I use the following code to codesign and notarize: codesign --timestamp --options runtime --force --deep -s "Developer ID Application: MYCOMPANY" "My.app" // Creating DMG with EULA license xcrun altool --notarize-app --primary-bundle-id MyApp -u "my@email.com" -p "abc123" --file MyApp.dmg xcrun stapler staple MyApp.dmg
9
0
6.6k
Mar ’21