Hi all!
I'm trying to enhance an AppKit UI for entering an MFA code received via SMS to use the new NSTextContent APIs introduced in macOS Big Sur.
I have tried using both an NSTextField and an NSSecureTextField for the field. I set the .contentType of the field to NSTextContentTypeOneTimeCode, but nothing happens when I receive an SMS in Messages while the field has focus. I confirm that the system is recognizing it as a One Time Code because the auto-fill suggestion works for the web-based version of this UI when using Safari on my Mac, and when I right-click the code in Messages, the "Copy Code" menu item appears.
Is this API expected to work? What's supposed to happen? What am I missing?
Thanks!
Chris
Post
Replies
Boosts
Views
Activity
When using Xcode 14 beta on Monterey or Ventura, I notice it spends a lot of time "Provisioning" at the beginning of the build process (sometimes minutes). I haven't noticed that in earlier versions of Xcode. What is that? Is it a bug that it's taking so long?
We're using PDFs for assets in a Mac app, using Xcode 14.1
The generated Assets.car file is very big, much larger than the total size of the .xcassets directory that contains all the source images (PDFs).
When examining the output of assetutil --info it looks like each of our PDF assets appears 4 times in the asset catalog:
Scale=1 and Colorspace=srgb
Scale=1 and Colorspace=extended srgb
Scale=2 and Colorspace=srgb
Scale=2 and Colorspace=extended srgb
How can we generate an asset catalog that contains only 1 copy of each asset?
(We're using asset catalogs in order to support dark mode, otherwise we could work around this issue by just using the PDFs as resources directly.)
Has anyone else run into this problem?
Thanks!