NSWorkspace's openURLs:withAppBundleIdentifier:options:additionalEventParamDescriptor:launchIdentifiers: method returns 0 on OS X 10.10 when trying to open a NSArray of > ~6 URLs

Originator:joshparnham
Number:rdar://19407043 Date Originated:08-Jan-2015 12:20 PM
Status:Open Resolved:
Product:OS X SDK Product Version:10.10
Classification:Other Bug Reproducible:
 
Summary:
OS X 10.10 seems to have changed NSWorkspace's 
`openURLs:withAppBundleIdentifier:options:additionalEventParamDescriptor:launchIdentifiers:` method. Passing in an NSArray of several URLs now seems to silently fail and return 0, but on OS X 10.9 and below it would function normally and open all the URLs (as illustrated in the attached project).

Steps to Reproduce:
1. Create an NSArray of ~10 URLs
2. Call NSLog(@"%d", [[NSWorkspace sharedWorkspace] openURLs:theURLs withAppBundleIdentifier:nil options:NSWorkspaceLaunchDefault additionalEventParamDescriptor:nil launchIdentifiers:nil]);


Expected Results:
The default web browser is launched and all URLs are opened, also the call returns 0.

Actual Results:
Some of the URLs are opening and the call returns 0.

Additionally, OSStatus -1712 can be raised with the message: "The application <browser name> could not be launched because a miscellaneous error occurred (OSStatus -1712)."

Version:
Xcode Version 6.1.1 (6A2008a)
OS X 10.10.1 (14B25)

Notes:


Configuration:


Attachments:
'URL_Test.zip' - https://dl.dropboxusercontent.com/u/7675888/URL_Test.zip

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!