Dynamic UTIs do not include source extension type

Originator:thorogood
Number:rdar://12316273 Date Originated:18-Sep-2012
Status:Open Resolved:
Product:Mac OS X SDK Product Version:10.8.1
Classification: Reproducible:Yes
 
18-Sep-2012 10:45 AM Sam Thorogood:
Summary: Dynamic UTIs do not include source extension type

Steps to Reproduce: Use UTTypeCreatePreferredIdentifierForTag to create a UTI from a kUTTagClassFilenameExtension, one that is unknown and will create a dynamic UTI (e.g. "flurble"), and then create a NSOpenPanel that only allows files of that UTI.

Expected Results: Files with extension "flurble" should be selectable/openable.

Actual Results: Files with extension "flurble" are _not_ selectable/openable.

Regression: Not sure. Reported/tested only on 10.8 and above.

Notes: Attached .m source showcasing bug.

18-Sep-2012 10:45 AM Sam Thorogood:
'ref.m' was successfully uploaded

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!