Post

Replies

Boosts

Views

Activity

NSProgressIndicator: How do you switch from a determinate progress indicator to the Cylon indeterminate progress indicator?
I'm observing something unexpected in macOS Big Sur: If I have an indeterminate progress (bar) indicator, the animation is the Cylon one. If I have a determinate progress (bar) indicator and I set it to be indeterminate (through the appropriate property), the animation is a pulse/throb. Even if I set the min,double,max value to 0. Is it no more possible to alternate between determinate and indeterminate in macOS Big Sur?
1
1
1.1k
Aug ’20
SecCodeCheckValidityWithErrors returns -67030 on OS X 10.9/10.10
Is there a known bug/limitation with the SecCodeCheckValidityWithErrors on OS X 10.9/10.10 when it comes to checking the validity of an app in the following case: the application A.app is a bundle. inside Ap.app/Contents/MacOS there is an additional binary B. B is launched by launchd and runs an XPC mach service. A is a client of this XPC mach service. When A tries to connect to B, B checks the calling process with SecCodeCheckValidityWithErrors. On OS X 10.9/10.10, SecCodeCheckValidityWithErrors returns -67030 (errSecCSInfoPlistFailed / invalid Info.plist (plist or signature have been modified)). On OS X 10.11 and later, SecCodeCheckValidityWithErrors succeeds. If a copy of B is installed outside of the A.app bundle and it's this copy that launchd starts, A can communicate with B. [Q] Was there a bug in OS X 10.9/10.10 where SecCodeCheckValidityWithErrors would return -67030 if the XPC server is inside the MacOS folder of the XPC client?
1
0
748
Apr ’21
[macOS] Checking admin privileges with Touch ID???
I'm trying to figure out whether it's possible to authenticate a user as an admin using Touch ID on macOS. And Using _public_ APIs (*)Basically, what I'm trying to achieve is:1. User clicks on a button to perform a task that can only performed by a user who is allowed to administer the computer.2. A standard security authentication dialog appears and allows to authenticate using Touch ID.3. A AuthenticationRef is retrieved.When I look at the Local Authentication API, I see multiple limitations (by design or not):- it lets you prove you are the current user. But it does not check that you are an admin user.- the dialog does not work as the one in Installer.app for instance: . if you move the authentication dialog to a screen corner and then click the User Password… button, the Password window is displayed on the center of the screen.- it does not seem possible to retrieve a AuthorizationRef.QuestionAre there public API or services that allows to check for admin privileges which support Touch ID?* I know it's possible using private frameworks since this for instance what the Startup Disk preference pane does.
3
0
1.9k
Mar ’20
[Base Internationalization + Auto Layout] How to do the following tasks?
Auto Layout: How do you get the width of a column in a NSTableView to resize correctly to fit the localized header column title? Base Internationalization: Is it possible to hide a view for a specific language using the .strings files? For instance, is there something like: "id-view-something.hidden" = YES; ? If you add a NSTextField to a xib file, do you really need to manually add the NSTextFieldCell id in every existing corresponding .strings file? Or is there a command in Xcode to update the .strings files (Xcode 10.3 here)? I've already had a look at the documentation, stackoverflow and so on. The only answer found was for the 3rd question and it looked like a 3rd party tool is required to achieve this task.
0
0
869
Jan ’21
macOS 11.1b1 real release notes?
Could it be possible to provide real release notes instead of the limited current ones? It would be very surprising that fixing the listed Catalyst issues requires a 3 GB update. I believe it would be appreciated by everyone if there was a list of all the bugs that have been fixed so far and not just the Catalyst ones.
0
0
493
Nov ’20
Big Sur / Filter Data Provider vs Screen Sharing.app / File Upload failures
Is there any known issue in macOS Big Sur regarding Filter Data Provider and Screen Sharing.app file uploads? From what I'm observing: Uploading files through Screen Sharing.app fails when a Filter Data Provider is running and just requests to see all the data (and does nothing else). At the same time, the remote display feature just works fine and Safari browsing works fine. I've already filed a bug report with more info: FB8880461
1
0
596
Nov ’20
Network Extension- Packet Filter vs Logs
Console.app shows a lot of logs from NEFilterPacketInterpose when you use a Network Extension (possibly a NEFilterPacketProvider) repeatedly. I'm a bit worried by these from a performance point of view considering that: there is a huge number of them over time. turning off developer mode via systemextensionsctl does not appear to disable those logs. these logs are printed for release flavors of NEs not just debug flavors. Questions: Is this pointless worrying and it does not have any impact on performances? Is there a way to turn them off (not just filter them in Console.app)?
2
0
1k
Oct ’20
Network extension - C APIs?
Is there a C version of the Network Extensions APIs? Just asking because some of the Objective-C/Swift objects do not provide useful methods. e.g. NWEndpoint vs nw\_endpoint\_t If you want to get the port using NWEndpoint/NWHostEndpoint, you first need to get a NSString * that is useless and "big" and convert it to an unsigned short. If you want to get the port using nw\_endpoint\_t, you just use nw\_endpoint\_get__port to get the unsigned short. It's worse of course if you need to get the sockaddr *. Also with nw\_endpoint\_t, you can know the type of the endpoint… I will file an enhancement request about this if needed but the Feedback Assistant website was down, again, when I tried.
4
0
1.1k
Oct ’20
Network Extension vs SecCodeCheckValidityWithErrors ?
When calling SecCodeCheckValidityWithErrors from a Network Extension, this function returns with OSStatus -67061. "-67061" is not documented in SecBase.h (unless I'm mistaken). The CFErrorCopyDescription output for this error says something like "The operation can not be performed". Question: Can SecCodeCheckValidityWithErrors be called from a Network Extension? If it can not be called, would there be, somewhere, a list of framework, functions that are not network-extension-safe?
2
0
816
Oct ’20
NEFilterConfigurationDidChangeNotification not being sent: is this the expected behavior?
Let's imagine that a Network Extension is running fine. In System Preferences.app > Network, the extension is listed as "Running". Case 1: You then remove the Network Extension through the Network pref pane by selecting the corresponding row and clicking - and then the Apply button. When you try to re-enable the Network Extension using the NEFilterManager API, at the end of the re-enabling process, the NEFilterConfigurationDidChangeNotification is posted. That's fine. Case 2: You make the Network Extension inactive through the Network pref pane by selecting it, choosing Make Service Inactive using the action menu and then clicking the Apply button. When you try to re-activate the Network Extension using the NEFilterManager API, at the end of the re-activation process, the NEFilterConfigurationDidChangeNotification is NOT posted. Question: Is the behavior of case 2 the expected one? If it is (or if it's not), how are we supposed to know that the Network Extension was correctly reactivated?
3
0
958
Sep ’20