I have overriden the macOS login screen using https://github.com/skycocker/NameAndPasswordand have replaced it with my custom screen. Now, I want to show a Popover or a message box / alert box showing messages on that screen.How can i do it?
Post
Replies
Boosts
Views
Activity
Hi ,I am currenlty using sfauthorizationpluginview. The result is always nil for the URLData on calling the webservice on ScreenSaver or Lock Screen while the same code is working fine on accessing the login window .The issue is only lying with catalina. tested mojvae it was working fine.Code i am using :let session = URLSession.shared let ds = DispatchSemaphore( value: 0 ) let task = session.dataTask(with: theRequest, completionHandler: { data, response, error -> Void in AppLogger.writeLog(toFile: "Url Data from Task: \(String(describing: data))", with:Debug) if(data != nil) { let httpResponse = response as! HTTPURLResponse statusCode = httpResponse.statusCode if let urlData = data { responseData = String(data: urlData, encoding: .utf8) ?? "" } if(responseData.isEmpty) { AppLogger.writeLog(toFile: "Response data is empty.", with:Error) } } else { statusCode = 408 } // do my thing..., then unblock main thread ds.signal() }) task.resume() // block thread until semaphore is signaled ds.wait()same is happening on using the NSURLConnection.sendSynchronousRequest()
I have overriden a macOS login screen with my own using SFAuthorizationPluginView.I want a way/event to detect whether we have come from login mode or sleep mode or lock mode during during login event at runtime using objective c. Is there a way?
I need to Draw a Label like Sleep, restart, shutdown option in loginwindow of macos, so that it will appear correctly on all 3 OS versions High Sierra, Mojave and Catalina.I need to do this in objective c dynamically at runtime for NSTextFieldPlease suggest some solution.I need to show a label on loginwindow of mac, I am able to manipulate that window using SFAuthorizationPluginView.