macvim-dev / macvim

Vim - the text editor - for macOS
https://macvim.org
Vim License
7.55k stars 682 forks source link

Fix incorrect UTI registrations #1489

Open jgvanwyk opened 7 months ago

jgvanwyk commented 7 months ago

This is a continuation of #1468. This pull request fixes the incorrect UTI exported/imported UTIs as well as updates CFBundleDocumentTypes to use LSItemContentTypes instead of CFBundleTypeExtensions.

(This is a new pull request because I screwed up the previous repository while trying to synchronise it with the main branch).

jgvanwyk commented 7 months ago

One thing I noticed while updating the CFBundleDocumentTypes was the use of LSIsAppleDefaultForType, which appears to be undocumented (and I would guess is intended to be private). Should this be removed?

eirnym commented 7 months ago

I think it's ok if it's widely used.