Skip to content

Commit 47c27b2

Browse files
committed
revise README.md
1 parent 8743475 commit 47c27b2

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,25 @@
55
Select which file will be opened by which xcode.
66

77
![Main Interface](.assets/Main.png)
8+
9+
10+
## Under the hood
11+
12+
1. Register self as the default application that the files with specific extension will be opened with.
13+
2. When self receive openURL notification, we decide which real application user specified before to open it.
14+
3. Done
15+
16+
17+
## Core
18+
19+
``` Swift
20+
/*
21+
Sets the user’s preferred default handler for the specified content type in the specified roles.
22+
*/
23+
LSSetDefaultRoleHandlerForContentType(_:_:_:)
24+
25+
/*
26+
Returns the application bundle identifier of the user’s preferred default handler for the specified content type with the specified role.
27+
*/
28+
LSCopyDefaultRoleHandlerForContentType(_:_:)
29+
```

0 commit comments

Comments
 (0)