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
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:
Replies
Boosts
Views
Activity
Dec ’23
Reply to Browser Password Fields in Monterey+ breaks app hotkey activation
The app's window does not display at all. The issue not that it is behind something. If I display the window with [NSApp runModalForWindow:window], it does display--on top--but is not key, If I then click on it it becomes key. I just did that as a test, as I do not want to run modally.
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
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:
Replies
Boosts
Views
Activity
Nov ’23
Reply to Browser Password Fields in Monterey+ breaks app hotkey activation
I tried SetFrontProcess to activate the app. It does not work either if the cursor is in a Password dfield.
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
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:
Replies
Boosts
Views
Activity
May ’23
Reply to Problems changing an app's document icon
Good thinking! I had done neither. I cleaned the build folder, recompiled--no change. I then deleted everything in the Build folder, emptied the Trash, recompiled--still no change.
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
May ’23
Reply to SMAppService: How to recover from broken LaunchDaemon registration in Login Items
I cannot even get that far. if I call [SMAppService.mainAppService registerAndReturnError:&error] it returns the error: Error Domain=SMAppServiceErrorDomain Code=1 "Operation not permitted" UserInfo={NSLocalizedFailureReason=Operation not permitted} Any idea what the problem could be? Why is it not permitted?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’22