I'm trying to use tapi to generate a .tbd for a multi-arch dynamic library.
The dynamic library has LC_UUIDs for both architectures, but the generated .tbd does not have a uuids section.
I have tried generating .tbd versions 2, 3, and 4.
(Which version should I use if I want to support older macOS releases?)
I'm using the command tools from Xcode 15.0.1 on macOS 14.1 on arm64.
Post
Replies
Boosts
Views
Activity
The documentation is silent on this question. I can imagine several possibilities:
The block is performed regardless of the run loop mode.
The block is performed in the default run loop mode.
The block is performed in any of the common run loop modes.
(I shouldn't have to write a test program to figure this out!)
I have several applications (written in Java, although I doubt that matters). Some of these applications define custom dock menus and some do not. None of them are NSDocument based. Most of the time, the dock menus for these applications include at the top a list of the document's windows. Windows that are hidden (minimized?) are included in the list with a diamond icon. I don't think that my applications or Java are creating these menu items. What I don't understand is that when the application is hidden, sometimes these menu items disappear from the dock menu and sometimes they remain. Is this a bug, or is there some rational explanation? (I would prefer that the menu items remain.) I'm running macOS 13.3.1 (Ventura).
I have occasionally encountered unexpected problems deleting directory trees (using rm -rf in a shell script). Recently, I encountered a similar problem using a third party application that failed to delete a directory tree using Java APIs. In both situations, the problem turned out to be a failure to remove a directory because it was not empty, and the file it contained was a .DS_Store file. This is odd for two reasons:
The directory was not one I had viewed using Finder, so why was a .DS_Store file created?
The .DS_store file was not protected, so why wasn't it deleted along with the other files in the directory?
The only explanation I can think of is that the .DS_Store file was created by a background thread, which is possible, but what would a background thread be doing that would cause a .DS_Store file to be created?
Starting with macOS 12.2 (I believe), I have encountered problems when applications try to open dialogs, especially file dialogs. My hunch is that the problem is some kind of resource leak in the window manager. The system will run fine for a while (a day or two), then suddenly get very slow or applications will hang trying to open a dialog. The most interesting failure occurs when I try to use a Save dialog from Firefox. A file dialog is displayed that is almost completely invisible. The only visible component is the file format menu button. Usually I can dismiss the dialog with ESC, but sometimes that does not work. I have found that quitting an application sometimes fixes the problem temporarily, but generally a restart is needed.
Given the seriousness of the problems, I wonder why I am not hearing about other people having this problem and why the problem has not been fixed. One possibility is that I am using an application that is not widely used and it is triggering the problem be not releasing resources. (I won't name the application now without having more evidence.) As an experiment, I have stopped using that application to see if the problems go away. Even if that is the explanation, I think the window manager should do better at preventing one application from causing problems with other applications.
FB9937157 submitted two months ago
I would like my application to receive an event when the user clicks on an emoji or symbol in the macOS Emoji & Symbols panel and my application window is the key window. I need an event because I am not using an AppKit text component. Is this possible?
For extra credit, is there a way may application can position the panel at a particular location in the window the way TextEdit does?
I have a SpotLight importer for my custom document type. At one point it was working, but apparently it stopped working a while ago. After rebuilding the SpotLight index (-E) in the course of debugging, the few documents that previously worked no longer work.
I have tested the importer using mdimport -t -d3 and the output looks reasonable.
However, if I do a simple search such as mdfind 'kMDItemTextContent == "gasoline or propane"', the text is not found, even though it is present in the importer output. In fact, if I save the importer output to a file, the text is found in that file.
The console log contains many instances of this error from mdworker_shared:
All kCFPreferencesCurrentUser domains in this process will be volatile, because homeDirPath starts with /var/empty
Is there anything I can do to figure out what is going wrong?
I'm running on macOS 11.5.1.
I have a macOS app that captures screen images. The first time I run this application, a dialog is shown directing the user to give my app Screen Recording permission. Is there a way I can trigger this dialog earlier and detect whether the permission was granted?
I'm not understanding the role of the namespace used with prefersDefaultFocus.
If I use prefersDefaultFocus, how would I choose the view where the namespace is defined? What could go wrong if I chose the "wrong" place?
I am most interested in understanding how this feature behaves on macOS.
Is there any documentation available on the new localized keyboard shortcuts feature? I'm interested to know if an application can discover the current set of shortcuts.