File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed
XcodeOpener/XcodeOpener.xcodeproj/project.xcworkspace/xcuserdata/chen.xcuserdatad Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change 5
5
Select which file will be opened by which xcode.
6
6
7
7
![ 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
+ ```
You can’t perform that action at this time.
0 commit comments