Skip to content

Commit adf1d17

Browse files
committed
Allow documentes to be dragged onto the editor on OS X
1 parent 4378f9d commit adf1d17

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

Tkx Editor.app/Contents/Info.plist

+13
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,18 @@
88
<string>Tkx Editor</string>
99
<key>CFBundleIconFile</key>
1010
<string>leisure.icns</string>
11+
<key>CFBundleDocumentTypes</key>
12+
<array>
13+
<dict>
14+
<key>CFBundleTypeExtensions</key>
15+
<array>
16+
<string>*</string>
17+
</array>
18+
<key>CFBundleTypeName</key>
19+
<string>All</string>
20+
<key>CFBundleTypeRole</key>
21+
<string>Viewer</string>
22+
</dict>
23+
</array>
1124
</dict>
1225
</plist>

tkx-ed

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ if ($IS_AQUA) {
2929
Tkx::carbon__setProcessName($psn, $PROGNAME);
3030
};
3131
warn $@ if $@;
32+
33+
Tkx::interp_alias("", "::tk::mac::OpenDocument", "", [\&load]);
3234
}
3335

3436
Tkx::package_require("BWidget");

0 commit comments

Comments
 (0)