LS: App does not get told to open all files the user tries to open with it
| Originator: | boredzo | ||
| Number: | rdar://11847878 | Date Originated: | 2012-07-11T02:31-0700 |
| Status: | Open | Resolved: | |
| Product: | Mac OS X | Product Version: | 10.7.3/11D50 |
| Classification: | Serious Bug | Reproducible: | Sometimes |
Summary:
When the user tries to open multiple files with a single app, either by dragging them onto the app's Dock tile or by using the open(1) command, the application does not get told about all of the files and/or gets told about them in multiple batches.
Steps to Reproduce:
1. Drag dozens of files onto an application that can open files of those files' type(s).
Expected Results:
The application opens all of the documents. Applications that specially handle batches, such as Preview, will do such handling upon the entire batch (Preview will open an entire batch of images in one window).
Actual Results:
The application may not open all of the documents, having never been told about all of them, and/or may be told about some or all of the documents in multiple batches.
Regression:
Yes, but I don't remember when it broke. It was either Snow Leopard or Lion.
Notes:
Test app attached. It can “open” any file, although all it does is log to the Console. Drag a few dozen files onto it in one batch and check the Console for its output.
The test app will log the path or array of paths that receives in each -application:openFile(s): message.
In my case, I dragged 31 files onto the application in a single drag, and got the following output:
{{{
2012-07-11 02:19:37.730 OpeningFilesTest[14248:403] Told to open 9 files: (
[nine paths]
)
2012-07-11 02:19:38.216 OpeningFilesTest[14248:403] Told to open 1 files: (
[one path]
)
}}}
The application was never told about 21 of the dragged files.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!