launch-services Questions
4
I'm trying to figure out how to set the default web browser on OS X via command line. I found this forum post, but the solution they are working out there is to open a specific URL with a specific ...
Top asked 8/7, 2013 at 14:5
0
When clicking the 'share' button in iOS Safari (either from the toolbar, or by long-pressing a link), I would like my app to be visible as an "Open in..." option (eg. "Open in News"), so that my ap...
Aesthetically asked 12/7, 2017 at 20:44
3
Solved
I am trying to implement the registering process that allows my iOS app to show up in the "Open in" list of other applications (as described in Apple's Document Interaction Programming Topics). I w...
Salcido asked 13/2, 2012 at 18:45
1
Solved
This answer says to use LSCopyKindStringForURL(), which has worked great in the past, but it's marked "deprecated" in OS X v10.11.
There's no mention in the API documentation of why it was depreca...
Eisenhart asked 11/6, 2016 at 15:26
3
Solved
Does anyone know of a good way to find (in the filesystem) every app with a given bundle identifier? NSWorkspace and Launch Services let you look for an app by bundle identifier, but only return a ...
Quinnquinol asked 12/1, 2012 at 19:24
2
Solved
I am writing an application that makes use of Uniform Type Identifiers. Specifically, I am calling UTTypeCreateAllIdentifiersForTag() and passing it various MIME types.
My hope was that this funct...
Kliman asked 11/10, 2010 at 6:37
1
I have developed a Mac application using Qt 5.3.2. This application handles files with specific extension (lets say .xyz).
I have created an icon file named XYZ.icns and added it to my app bundle ...
Fig asked 29/1, 2015 at 19:17
4
In my objective-c program, I need to open a URL in Safari no matter what the system's default browser is. That means that this won't work, because it could launch Firefox or whatever other browser:...
Woodpecker asked 3/6, 2010 at 11:50
3
Solved
Basic problem
I'm looking for a solution to enumerate all applications installed on a (Mac) OS X system, i.e. all application bundles registered with LaunchServices.
Simple approach that did not ...
Mccully asked 1/3, 2013 at 18:8
1
Solved
When I learned how to start NSApplications on my own, the code I used (based on here and here) did
[NSApp activateIgnoringOtherApps:YES];
which forces the app to the front at startup.
I'd like ...
Radiotelephony asked 14/8, 2014 at 22:24
3
I have the list of the applications for given file extension (using LSCopyApplicationURLsForURL). I want to change the default file association from code upon selecting one of the applications from...
Prittleprattle asked 27/7, 2010 at 13:33
1
Solved
I'm working on an Cocoa app which is launched/activated using URLs with a custom scheme which is registered in the Info.plist file like so:
<key>CFBundleURLTypes</key>
<array>
&...
Sharecrop asked 16/3, 2012 at 3:51
1
Solved
Can you dynamically assign CFBundleDocumentTypes to your Cocoa application? Meaning during run time can I assign more extensions for my app to handle.
Currently I set some extensions for my app t...
Grano asked 17/12, 2011 at 1:56
1
© 2022 - 2024 — McMap. All rights reserved.