Has anyone gotten NSTextContentTypeOneTimeCode to work?

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

Has anyone gotten NSTextContentTypeOneTimeCode to work?
 
 
Q