Post

Replies

Boosts

Views

Activity

Reply to Restricting available units for a Measurement<UnitDuration> @Parameter
I see, but I don't want to offer a fixed list of all possible intervals, I just want to be able to restrict the user from being able to select all offered UnitDurations (milliseconds, picoseconds, microseconds, nanoseconds, seconds, minutes, hours) to just two: seconds and minutes. I don't see how I can accomplish this with a DynamicOptionsProvider. Thank you for your help.
Topic: App & System Services SubTopic: General Tags:
Sep ’24
Reply to [macOS Sequoia] Using RegisterEventHotkey with option and shift modifiers doesn't working anymore
Thank you for the info. But I doubt key-loggers are using the RegisterEventHotKey API for every possible combination of special characters. There are so many easier ways to accomplish this. I doubt this change had anything to do with security or user-safety. It's just yet another change where Apple oversteps its bounds to prevent users from configuring and using their own computers the way they want to, if you ask me. Edit: and of course, Apple's own keyboard shortcuts are exempt from this restriction (see screenshot)
Topic: UI Frameworks SubTopic: AppKit Tags:
Sep ’24
Reply to [macOS Sequoia b1-3] Screen recording permission for XPC service repeatedly requested
Investigating this further, I found that running screencapture -xio ~/Desktop/test.png from within the Terminal.app results in the same "Continue To Allow" loop as I'm experiencing in my app (Sequoia b4). That cannot be the desired behavior, can it (bug report filed: FB14480958)? As for ScreenCaptureKit, I am looking into it, and it does have window capturing abilities sort of reminiscent of screencapture's, but it's way clunkier, in my opinion. And it does not allow for selecting a portion of a screen to be captured (drawing a rect around the area to be captured) as far as I can tell).
Topic: Privacy & Security SubTopic: General Tags:
Jul ’24
Reply to [macOS Sequoia b1-3] Screen recording permission for XPC service repeatedly requested
[quote='796641022, DTS Engineer, /thread/760112?answerId=796641022#796641022'] OTOH, if you’re only seeing this with your current code that relies on the screencapture, I don’t have a great path forward for you. [/quote] I understand. So what's the best way forward for replacing screencapture's selective screenshot UI? Is there a replacement for this, some asynchronous method I could call that returns the selected screen rectangle, or the selected window ID? Or do I really have to re-implement all this myself now - and re-invent the wheel - if I want to continue to sell my app on the Mac App Store (if that is even possible with public APIs, as I don't think, just as a random example, the window-highlight I get when pressing the space bar during screencapture is publicly available)? If the latter is the case, is there a temporary entitlement I could request for my app to give me more time to develop such a UI so my app continues to function in case I can't manage to develop such a replacement in time for Sequoia?
Topic: Privacy & Security SubTopic: General Tags:
Jul ’24
Reply to [macOS Sequoia b1-3] Screen recording permission for XPC service repeatedly requested
[quote='796423022, DTS Engineer, /thread/760112?answerId=796423022#796423022'] Looking at your bug, it seems that some fixes shipped in 15.0b3. However, you indicate here that you’re still seeing the problem in b3. Is that correct? [/quote] Yes, that is correct. I've submitted a sample project with the bug report demonstrating the issue. Perhaps it's in conjunction with me using the screencapture CLI (which I use mainly for the purpose of not having to reimplement its window-selection and on-screen-crosshair-position-and-size drawing UI). Maybe it also has to do with the new System Integrity Protection for App Group containers? (can't quote the same post twice, apparently, so in reply to your: "DevForums allows you to edit a post for a short time after creating it." Oh, ok, thanks for clarifying. I just (wrongly, apparently) remembered being able to edit for longer. All good then.
Topic: Privacy & Security SubTopic: General Tags:
Jul ’24
Reply to Mac app, SwiftUI: Change Dock menu
Alright, here's an update. It does work, after all. Just not when launched from Xcode. When you launch it manually from Finder, though, the items in the Dock's menu will show up and work. My thanks to Tom Swift over on Mastodon for letting me in on this secret.
Topic: UI Frameworks SubTopic: AppKit Tags:
Apr ’24
Reply to [Mac App Store] Sudden increase in "<App> is damaged and can't be opened" errors when launching Mac App Store app
I cannot say - my customers only report to me about my app failing. Let's assume it's just mine. I haven't changed anything in my receipt validation code in quite a while, so it's weird that all of a sudden these reports come in, is it not? And not just for macOS 15, but for older systems as well?
Topic: Code Signing SubTopic: General Tags:
Replies
Boosts
Views
Activity
Oct ’24
Reply to Restricting available units for a Measurement<UnitDuration> @Parameter
I see, but I don't want to offer a fixed list of all possible intervals, I just want to be able to restrict the user from being able to select all offered UnitDurations (milliseconds, picoseconds, microseconds, nanoseconds, seconds, minutes, hours) to just two: seconds and minutes. I don't see how I can accomplish this with a DynamicOptionsProvider. Thank you for your help.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Sep ’24
Reply to [macOS Sequoia] Using RegisterEventHotkey with option and shift modifiers doesn't working anymore
Thank you for the info. But I doubt key-loggers are using the RegisterEventHotKey API for every possible combination of special characters. There are so many easier ways to accomplish this. I doubt this change had anything to do with security or user-safety. It's just yet another change where Apple oversteps its bounds to prevent users from configuring and using their own computers the way they want to, if you ask me. Edit: and of course, Apple's own keyboard shortcuts are exempt from this restriction (see screenshot)
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Sep ’24
Reply to Restricting available units for a Measurement<UnitDuration> @Parameter
Any insights?
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Sep ’24
Reply to [macOS Sequoia b1-3] Screen recording permission for XPC service repeatedly requested
Using screencapture seems to have been fixed in macOS 15b5. Of course, now that I've spent a week and a half re-implementing this stuff. Well, I guess I have a fallback now should anyone decide that screencapture is off-limits once and for all. But don't get me wrong, I'm very glad it's working again. Thanks for all your help.
Topic: Privacy & Security SubTopic: General Tags:
Replies
Boosts
Views
Activity
Aug ’24
Reply to [macOS Sequoia b1-3] Screen recording permission for XPC service repeatedly requested
sample project now attached to FB14587060 . (tested it with proper signing, of course, even better, as a Developer-ID Distributed, Notarized App) (can't currently reproduce this issue after every relaunch of the app, but after every restart of the Mac, it asks and asks and asks).
Topic: Privacy & Security SubTopic: General Tags:
Replies
Boosts
Views
Activity
Aug ’24
Reply to [macOS Sequoia b1-3] Screen recording permission for XPC service repeatedly requested
Sequoia b4 asks after every relaunch of the app and every restart of the Mac if I want to "Continue to allow" screen recording permissions for every app I gave it to. This is completely insane and will drive users absolutely raging mad. (FB14587060)
Topic: Privacy & Security SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’24
Reply to [macOS Sequoia b1-3] Screen recording permission for XPC service repeatedly requested
Investigating this further, I found that running screencapture -xio ~/Desktop/test.png from within the Terminal.app results in the same "Continue To Allow" loop as I'm experiencing in my app (Sequoia b4). That cannot be the desired behavior, can it (bug report filed: FB14480958)? As for ScreenCaptureKit, I am looking into it, and it does have window capturing abilities sort of reminiscent of screencapture's, but it's way clunkier, in my opinion. And it does not allow for selecting a portion of a screen to be captured (drawing a rect around the area to be captured) as far as I can tell).
Topic: Privacy & Security SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’24
Reply to [macOS Sequoia b1-3] Screen recording permission for XPC service repeatedly requested
Just to keep documenting this, macOS Sequoia b4 still has this same issue. It also affects Automator, and Shortcuts, when running a shell script calling screencapture in them - it won’t work.
Topic: Privacy & Security SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’24
Reply to [macOS Sequoia b1-3] Screen recording permission for XPC service repeatedly requested
[quote='796641022, DTS Engineer, /thread/760112?answerId=796641022#796641022'] OTOH, if you’re only seeing this with your current code that relies on the screencapture, I don’t have a great path forward for you. [/quote] I understand. So what's the best way forward for replacing screencapture's selective screenshot UI? Is there a replacement for this, some asynchronous method I could call that returns the selected screen rectangle, or the selected window ID? Or do I really have to re-implement all this myself now - and re-invent the wheel - if I want to continue to sell my app on the Mac App Store (if that is even possible with public APIs, as I don't think, just as a random example, the window-highlight I get when pressing the space bar during screencapture is publicly available)? If the latter is the case, is there a temporary entitlement I could request for my app to give me more time to develop such a UI so my app continues to function in case I can't manage to develop such a replacement in time for Sequoia?
Topic: Privacy & Security SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’24
Reply to [macOS Sequoia b1-3] Screen recording permission for XPC service repeatedly requested
[quote='796423022, DTS Engineer, /thread/760112?answerId=796423022#796423022'] Looking at your bug, it seems that some fixes shipped in 15.0b3. However, you indicate here that you’re still seeing the problem in b3. Is that correct? [/quote] Yes, that is correct. I've submitted a sample project with the bug report demonstrating the issue. Perhaps it's in conjunction with me using the screencapture CLI (which I use mainly for the purpose of not having to reimplement its window-selection and on-screen-crosshair-position-and-size drawing UI). Maybe it also has to do with the new System Integrity Protection for App Group containers? (can't quote the same post twice, apparently, so in reply to your: "DevForums allows you to edit a post for a short time after creating it." Oh, ok, thanks for clarifying. I just (wrongly, apparently) remembered being able to edit for longer. All good then.
Topic: Privacy & Security SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’24
Reply to [macOS Sonoma 14.4b 23E5196e] screencapture fails to capture video.
the main reason I'm using the screencapture CLI is for its "interactive" area-drawing and window-selecting UI. Reimplementing this myself (highlighting windows when the space bar is pressed, drawing the selection rectangle and size/position crosshair info directly onto the screen, etc), is way out of proportion just for not using the screencapture CLI.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’24
Reply to [macOS Sequoia b1-3] Screen recording permission for XPC service repeatedly requested
(Feedback ID: FB14071922) P.S.: Is editing not a thing anymore in these forums?
Topic: Privacy & Security SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’24
Reply to Mac app, SwiftUI: Change Dock menu
Alright, here's an update. It does work, after all. Just not when launched from Xcode. When you launch it manually from Finder, though, the items in the Dock's menu will show up and work. My thanks to Tom Swift over on Mastodon for letting me in on this secret.
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Apr ’24
Reply to Mac app, SwiftUI: Change Dock menu
This is what I mean, just in case I wasn't clear:
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Mar ’24