Post

Replies

Boosts

Views

Activity

Reply to Help me implement SMAppServices
After a while when i ran the xcode project again without making any changes , application worked fine , agent was getting registered/running , i was getting logs for agent in console.app. Tried it multiple time and it was working whole day. But today again ran application from xcode , i started getting same error . Registering Agent. Status: 3 Failed to register agent: Error Domain=SMAppServiceErrorDomain Code=1 "Operation not permitted" UserInfo={NSLocalizedFailureReason=Operation not permitted} What possibly could be the reason for such behavior?
Apr ’25
Reply to Can we create a bundled non-interactive macOS application which uses CFRunLoop only(instead of using NSApplicationMain to run NSRunLoop)?
Thanks for your response @DTS Engineer In my app , i dont want to show any UI to user because user will be using this app just to do some background task like importing some data etc. So that our primary application which will be a different bundle can use that data which it may need during its launch (because of some reason it cann't get it using primary application itself). (This use can is just a example to explain what experience we want to give to user.) In this application, we wanted to have user experience , where user can double click on app icon and launch it . And then application will do its work and close . Since we have to give double click experience to user, we need to use a bundle application. We were using UIApplicationMain which will start a NSRunLoop to block main thread , until we finish our work on worker thread. And we were able to achive our objective using this approach. But since we dont have to show any UI to user , we were thinking can we use CFRunLoop to block main thread. We need a event loop (blocking main thread is just one example, we may also need to listen to some events etc on event loop)
Mar ’25
Reply to Using CUPS in iOS
I want to discover printers on worker thread . My end goal it to do print operation explicitly on worker thread. In UIkit, UIPrintInteractionController can send the printing job to printer in two ways: , Presenting the printing user interface(using present() func , which can work only with main thread) Printing directly to a printer(using print() func , in which we can pass UIPrinter() object containing information about the printer and it can work with worker thread). Using UIPrinterPickerController , which works on main thread , i can get list of printer . And then do the printing to that printer using method to of UIPrintInteractionController's method 2 of printing from worker thread . But i want whole printing to be done on worker thread. By using cups i want to discover the printers using worker thread , so that whole print operation in my application can happen on worker thread.
Topic: UI Frameworks SubTopic: UIKit Tags:
Jan ’24