SMJobCopyDictionary() does not work when running in sandbox.

Originator:heardrwt
Number:rdar://13626319 Date Originated:10-Apr-2013 06:04 PM
Status:Closed Resolved:
Product:Mac OS X Product Version:10.8.3
Classification:Serious Bug Reproducible:Always
 
Summary:
SMJobCopyDictionary() does not appear to currently work in applications that have been sandboxed.

Steps to Reproduce:
CFDictionaryRef pboardDictionary = SMJobCopyDictionary(kSMDomainUserLaunchd, CFSTR("com.apple.pboard"));
NSLog(@"%@", pboardDictionary);

Expected Results:
// dictionary describing the pboard job

Actual Results:
// pboardDictionary is NULL, however it is returned by the SMCopyAllJobDictionaries() function.

Regression:

Notes:

Workaround atm is to loop over the results from SMCopyAllJobDictionaries looking for the given Label.

Comments

Engineering has provided the following information:

We will not be making further enhancements to this API.

We are now closing this bug report.

If you have questions regarding the resolution of this issue, please update your bug report with that information.

Please be sure to regularly check new Apple releases for any updates that might affect this issue.


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!