Post

Replies

Boosts

Views

Activity

Reply to Getting NSScrollView to scroll to an Offset with animation
Just to add, I tried this, and for test I set the origin to .zero, expecting a understandable result: NSAnimationContext.runAnimationGroup { context in context.duration = 0.3 context.timingFunction = CAMediaTimingFunction(name: .easeInEaseOut) scrollView.contentView.animator().bounds.origin = CGPoint(x: 0, y: 0 ) } It animates but goes to a point that I dont understand where!!
Topic: UI Frameworks SubTopic: AppKit
Dec ’25
Reply to Swift MacOS-Check if a file at a URL is open
Thanks for that, and I understand the issues. For my purposes, I would like to do what is possible with Apple Script. To get the list of all apps in the foreground and then get a list of urls to their open documents. I know,to make this work, the apps need to support scripting. And also, including such a script might lead to App Store rejection, as it would require disabling sandboxing. Any suggestions?
Topic: App & System Services SubTopic: Core OS Tags:
Apr ’25
Reply to How to Trigger Permission Dialogue for Accessing the User's Desktop in macOS?
I used the following code: func getDesktopConent(){ let fileManager = FileManager.default let desktopURL = fileManager.urls(for: .desktopDirectory, in: .userDomainMask).first! guard let resolovedDesktopURL = resolveFinderAlias(at: desktopURL) else{ message = "Could not resolve desktop content" return } if let content = try? FileManager.default.contentsOfDirectory(at: resolovedDesktopURL, includingPropertiesForKeys: nil ){ message = "Found \(content.count) on Desktop" } else{ message = "Could not access desktop" } } and get the message "Could not access desktop"
Topic: App & System Services SubTopic: Core OS Tags:
Mar ’25
Reply to Getting NSScrollView to scroll to an Offset with animation
Just to add, I tried this, and for test I set the origin to .zero, expecting a understandable result: NSAnimationContext.runAnimationGroup { context in context.duration = 0.3 context.timingFunction = CAMediaTimingFunction(name: .easeInEaseOut) scrollView.contentView.animator().bounds.origin = CGPoint(x: 0, y: 0 ) } It animates but goes to a point that I dont understand where!!
Topic: UI Frameworks SubTopic: AppKit
Replies
Boosts
Views
Activity
Dec ’25
Reply to One-time purchase with free trial
What happens when someone buys a free trial from the site and then does not activate it immediately. I guess there is no property on Transaction that will let you know when the bought item was activated. Is there any suggestion here? thanks.
Replies
Boosts
Views
Activity
May ’25
Reply to Swift MacOS-Check if a file at a URL is open
Thanks for that, and I understand the issues. For my purposes, I would like to do what is possible with Apple Script. To get the list of all apps in the foreground and then get a list of urls to their open documents. I know,to make this work, the apps need to support scripting. And also, including such a script might lead to App Store rejection, as it would require disabling sandboxing. Any suggestions?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Apr ’25
Reply to How to Trigger Permission Dialogue for Accessing the User's Desktop in macOS?
I used the following code: func getDesktopConent(){ let fileManager = FileManager.default let desktopURL = fileManager.urls(for: .desktopDirectory, in: .userDomainMask).first! guard let resolovedDesktopURL = resolveFinderAlias(at: desktopURL) else{ message = "Could not resolve desktop content" return } if let content = try? FileManager.default.contentsOfDirectory(at: resolovedDesktopURL, includingPropertiesForKeys: nil ){ message = "Found \(content.count) on Desktop" } else{ message = "Could not access desktop" } } and get the message "Could not access desktop"
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Mar ’25
Reply to How to Trigger Permission Dialogue for Accessing the User's Desktop in macOS?
In My build settings, for Signing I set "Enable App Sandbox" to No, and I still didn't get any difference in behaviour. I even delete the sandbox from the "Signing & Capabilities" and still the same behaviour. Can you update the app that I had attached and make it respond as I want?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Mar ’25