summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorKevin Walzer <kw@codebykevin.com>2019-03-07 03:10:54 (GMT)
committerKevin Walzer <kw@codebykevin.com>2019-03-07 03:10:54 (GMT)
commit7075df40c0a760ccc6276ff9907f8706d7fcaa1d (patch)
treea1a690ddec4f57cc702267ed14ec487d77ef6ae6 /macosx
parentb8995bcd9cf614fea6e27d11900292ff2d20405f (diff)
downloadtk-7075df40c0a760ccc6276ff9907f8706d7fcaa1d.zip
tk-7075df40c0a760ccc6276ff9907f8706d7fcaa1d.tar.gz
tk-7075df40c0a760ccc6276ff9907f8706d7fcaa1d.tar.bz2
Further refinement in URL event handling
Diffstat (limited to 'macosx')
-rw-r--r--macosx/Wish-Info.plist.in8
-rw-r--r--macosx/Wish.sdef9
2 files changed, 14 insertions, 3 deletions
diff --git a/macosx/Wish-Info.plist.in b/macosx/Wish-Info.plist.in
index ba63ffb..4910f0b 100644
--- a/macosx/Wish-Info.plist.in
+++ b/macosx/Wish-Info.plist.in
@@ -36,15 +36,17 @@
<string>Viewer</string>
</dict>
</array>
- <key>CFBundleURLTypes</key>
+ <key>CFBundleURLTypes</key>
<array>
<dict>
+ <key>CFBundleTypeRole</key>
+ <string>Viewer</string>
<key>CFBundleURLSchemes</key>
<array>
- <string></string>
+ <string>foo</string>
</array>
<key>CFBundleURLName</key>
- <string></string>
+ <string>Get Foo</string>
</dict>
</array>
<key>CFBundleExecutable</key>
diff --git a/macosx/Wish.sdef b/macosx/Wish.sdef
index 8873e95..6639f70 100644
--- a/macosx/Wish.sdef
+++ b/macosx/Wish.sdef
@@ -33,5 +33,14 @@
<type type="text"/>
</result>
</command>
+ <command name="open location" code="GURLGURL"
+ description="Open a URL.">
+ <direct-parameter description="URL" type="text">
+ <type type="text"/>
+ </direct-parameter>
+ <result description="Result">
+ <type type="text"/>
+ </result>
+ </command>
</suite>
</dictionary>