osx - MacOS Get default application for file type -


i working on mac app. want use default app icons within app. info.plist , resource folder of app can .icns file , convert image format need. need know default application associated particular file extension, if any.

so how default application system associates given file extension?

don't go digging in other apps' bundles. it's best work @ level of abstraction suits question want ask. if want icon finder (or mail attachment, etc) display file of particular type, use nsworkspace iconforfiletype: method.


Comments

Popular posts from this blog

multithreading - Exception in Application constructor -

React Native allow user to reorder elements in a scrollview list -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -