Skip to content

hechen/XcodeOpener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XcodeOpener

Build Status Swift Version

Select which file will be opened by which xcode.

Main Interface

if you want recover registeration, click the back to xcode button on the menu.

Back to xcode

Under the hood

  1. Register self as the default application that the files with specific extension will be opened with.
  2. When self receive openURL notification, we decide which real application user specified before to open it.
  3. Done

Core

/*
Sets the user’s preferred default handler for the specified content type in the specified roles.
*/
LSSetDefaultRoleHandlerForContentType(_:_:_:)

/*
Returns the application bundle identifier of the user’s preferred default handler for the specified content type with the specified role.
*/
LSCopyDefaultRoleHandlerForContentType(_:_:)

Releases

No releases published

Packages

No packages published

Languages