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

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -