Post

Replies

Boosts

Views

Activity

Reply to Browser Password Fields in Monterey+ breaks app hotkey activation
Thanks for your help. I came up with a kludgey partial workaround, which I offer here in case it helps somebody else. Instead of: [window makeKeyAndOrderFront:self]; I coded: NSTimer *stopModalTimer = [NSTimer scheduledTimerWithTimeInterval:.25 target:NSApp selector:@selector(stopModal) userInfo:nil repeats:NO]; [[NSRunLoop currentRunLoop] addTimer:stopModalTimer forMode:NSModalPanelRunLoopMode]; [NSApp runModalForWindow:window]; This displays the window then turns off modal mode. However, the window is not key until clicked on.
Topic: UI Frameworks SubTopic: AppKit Tags:
Dec ’23
Reply to Browser Password Fields in Monterey+ breaks app hotkey activation
My app has LSUIElement set to YES. If I change that to NO, there is a Dock tile for the app. If I click on the dock tile while in secure input mode, the app does become actove. So I now it can bw made active (the dock can do it) . But how can I programatically make it active when neither [NSApp activateIgnoringOtherApps:YES] (pre macOS14) nor [NSApp activate] (macOS 14) work?
Topic: UI Frameworks SubTopic: AppKit Tags:
Nov ’23
Reply to Problems changing an app's document icon
Another great suggestion. I had a new partition with 12.6.5 installed, so I opened the new app for the first time there. All was well. Correct app icon. Correct document icon on document created. Correct document icon in window title. That would suggest that the application was built correctly. I then erased the partition, realinstalled 12.6.5, and downloaded the old app with the old icon. I launched it and created a document. Correct (old) app icon. Correct (old) documnt icon. Correct (old) document icon in window title. I then closed app and replaced it in the applications folder with the new app. The old icon remained in the dock in the recently used section. I clicked on it, and it changed to the new icon. The document icon on the document did not change. I double-clicked it to open the document. It's icon remains the old icon. The icon in the title bar remains to old icon. Is this an OS bug or am I doing something wrong?
Topic: UI Frameworks SubTopic: AppKit Tags:
May ’23