Generic UTIs such as "public.image" and "public.archive" should have default system icons

Originator:peter.kamb
Number:rdar://43533337 Date Originated:
Status:Open Resolved:
Product:macOS + SDK Product Version:
Classification: Reproducible:
 
Area:
Finder

I'm working with generic UTIs used in Finder predicate editors:

```
com.apple.application
public.archive
com.pkware.zip-archive
public.content
public.executable
public.directory
public.image
public.movie
com.adobe.pdf
public.presentation
public.text

    let defaultIcon = NSWorkspace.shared.icon(forFileType: "public.item")
```

When I try to use NSWorkspace.shared.icon(forFileType:) to get the icons for these UTIs,  the majority of the top-level UTIs return a blank/default icon.

EXPECTED RESULT:

"public.image" should return a similar image to the default OS X / Preview.app images provided for "jpg", "png", etc.

"public.archive" should return a similar image to that of a ".zip" file.

DISCUSSION: 

Apps such as Preview.app seem to contain these icons in their Resources folder, and register them with the system as the handler for certain types. These default system apps should register for the top-level "public.image" UTIs in addition to the specific UTIs they currently register for.

QuickTime.app includes the resources "Generic.icns" and "Movie.icns", both of which are default quicktime document items. One of these is being used for the icon for the generic top-level UTI "public.movie".

Preview should provide a similar icon for "public.image", etc.

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!