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
Post a Comment