No this didnt worked, for loop will not wait till window closes and it is iterating and coming out. I used while loop and it is blocking the execution. I am looking for standard way or any cocoa API to fix this. Thanks
Post
Replies
Boosts
Views
Activity
Like every 12 hours i am trying to download a file from server and sync it with my local file, thats what my code snippet does
So you are suggesting me to use NSBackgroundActivityScheduler and none of the above mentioned ways.
1.File can be any type : Word,Excel,PPT,Keynote,Text,RTF,Pages,numbers .2. My App is not sandboxed Yes i want to print from my aooI tried lp command in shell which is printing only PDF'sApple script also i triedM looking for swift framework , PDF kit is also printing obly PDF docs . I already posted below question regardingHow to print a non PDF document from MacOS using swift or shell script
@eskimo thank you much , actually this is working for me as well but once in 100 times it is getting stuck and never returns. Once I restart the machine it works
This is a working solution
dataDisclosureView.accessibilityElements = [dataDisclosureView as Any,
titleLabel as Any,
descriptionLabel as Any,
requestButton as Any,
hintLabel as Any]
if #available(iOS 17.0, *) {
dataDisclosureView.automationElements = [titleLabel as Any,
descriptionLabel as Any,
requestButton as Any,
hintLabel as Any]
} else {
// Fallback on earlier versions
}
but I am not satisfied with that because in one of Apple WWDC video it was mentioned that if we want exempt item from voice over accessibility don't add it in accessibilityItems and if we want in automation elements just add it. They haven't provided deeper details . Reference is https://www.youtube.com/watch?v=IAqzXI3kFCk also adding screenshot about what I am saying
According to this it should be
dataDisclosureView.accessibilityElements = [dataDisclosureView as Any,
titleLabel as Any,
descriptionLabel as Any,
requestButton as Any]
if #available(iOS 17.0, *) {
dataDisclosureView.automationElements = [titleLabel as Any,
descriptionLabel as Any,
requestButton as Any,
hintLabel as Any]
} else {
// Fallback on earlier versions
}