Posts

Post not yet marked as solved
1 Replies
155 Views
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?
Posted
by cbfiddle.
Last updated
.
Post not yet marked as solved
0 Replies
118 Views
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
Posted
by cbfiddle.
Last updated
.
Post not yet marked as solved
1 Replies
216 Views
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?
Posted
by cbfiddle.
Last updated
.
Post not yet marked as solved
10 Replies
867 Views
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.
Posted
by cbfiddle.
Last updated
.
Post not yet marked as solved
0 Replies
271 Views
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.
Posted
by cbfiddle.
Last updated
.
Post not yet marked as solved
1 Replies
414 Views
I am experiencing occasional corrupted data when reading files on an external hard drive using an APFS volume running 10.14.2. The errors are not strictly repeatable, but they often involve the same or similar files.It took some doing, but I now have copies of a file with both the correct and the corrupt contents.The files have the same length.The corrupted file contains a repetition of previously read data at one point and slightly later an omission of the same amount of data, which is 12288 bytes (3 x 4096).Is this more likely to be a disk drive problem, a Firewire 800 problem, or an APFS problem?How might I figure this out?
Posted
by cbfiddle.
Last updated
.
Post not yet marked as solved
1 Replies
1.8k Views
What does the above log message mean?There are many posted console logs that contain this message, and it seems that they all refer to applications that fail to start.The reco type is typeAERecord, a list of keyword specified descriptor structures, and is still documented, so in what sense is it a non-desc type or not a good idea?
Posted
by cbfiddle.
Last updated
.
Post not yet marked as solved
5 Replies
1.7k Views
My unsigned application has an mdimporter. In 10.14, it has stopped working, and the error messages suggest a code signature issue (see below). I have not found any documentation on the impact of code signatures on mdimporters. Is this a macOS bug, or am I supposed to change something?A similar problem has been reported for EverNote.https://discussion.evernote.com/topic/116651-en-752-spotlight-not-working-errors-w-mdimporter/The logged error messages:code signature in ... not valid for use in process using Library Validation: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?)Cannot find function pointer MetadataImporterPluginFactory for factory C8BC68DA-C20C-4742-9BE6-D438C0D48ED2 in CFBundle/CFPlugIn 0x7fb2e2d076c0 <...> (bundle, not loaded)
Posted
by cbfiddle.
Last updated
.