Alfonso Tesauro
Alfonso Tesauro

Reputation: 1792

In a Cocoa Application for macOS, I save a bundle to disk using NSFileWrapper. How can I get the finder show the correct icon for my bundle?

In a Cocoa Application for macOS, I save a bundle to disk using NSFileWrapper. The Bundle is correctly saved and recognised as a bundle (Show package contents appear) but I cannot get the finder display the Icon I provide for the bundle. Here are my settings for the imported/exported UTIs:

enter image description here

Unfortunately, the bundle appears always with a blank file icon:

enter image description here

As you can see, the Finder recognises the file kind, but does not display an image for it. Any help is greatly appreciated. Thanks

Upvotes: 0

Views: 153

Answers (1)

James Bucanek
James Bucanek

Reputation: 3439

In the Exported UTIs section, try setting Conforms To to com.apple.package, public.archive.

I'm no UTI expert, but that has always worked for my apps.

Upvotes: 1

Related Questions