Commit Graph

751 Commits

Author SHA1 Message Date
Allan Odgaard
6f17fa5352 Checkin release notes for 2.0-rc.20 2018-12-02 18:24:17 +07:00
Allan Odgaard
b08801ac33 Update the “NewApplication” template 2018-12-02 18:08:38 +07:00
Allan Odgaard
95da575620 Do not include themes in the View menu when hideFromUser is true 2018-11-22 16:24:17 +07:00
Allan Odgaard
f244e223fd Rename a few menu items 2018-11-20 22:21:50 +07:00
Allan Odgaard
79172d552e Set controlSize on NSControl instead of its cell 2018-11-17 20:20:55 +07:00
Allan Odgaard
b9174f2e87 Checkin release notes for 2.0-rc.18 2018-11-15 11:31:14 +07:00
Allan Odgaard
f92d36571a Use DISPATCH_APPLY_AUTO instead of explicit global queue
This is “strongly recommended” (according to `man dispatch_apply`) and should work on 10.9 and later (according to a WWDC session).
2018-11-12 19:15:12 +07:00
Allan Odgaard
8ba05fcf26 Checkin release notes for 2.0-rc.15 2018-11-02 16:35:26 +07:00
Allan Odgaard
1aa569cdf2 Draw a custom dash for removing find results and favorites
The NSImageNameRemoveTemplate looks bad in 10.14, and while there is some duplication in this commit, it’s so few lines that sharing this functionality would result in an increase of total number of lines.
2018-11-02 16:31:49 +07:00
Allan Odgaard
d0f9f652f9 Let text/background color depend on effective appearance in about window
I was unable to update the CSS from Objective-C (using evaluateJavaScript:) which is why the content has to request the styles from the exposed TextMate object.

It would be best if this was implicit (which I know is easy with WKWebView, so better just migrate to WKWebView than fight more with WebView).

Though it is probably better to have separate style sheets for light and dark, eventually we may even be able to rely on media queries for the appearance.
2018-11-02 16:14:09 +07:00
Allan Odgaard
56acb17990 Use full size content view for Open Quickly (⌘T) and friends
This make the content of the table view affect the background of the title/footer views.
2018-11-02 08:40:39 +07:00
Allan Odgaard
efd504e536 Make OakChooser windows inherit from NSWindowController 2018-11-02 08:30:55 +07:00
Allan Odgaard
6c7276235e Checkin release notes for 2.0-rc.14 2018-11-01 12:06:04 +07:00
Allan Odgaard
37176f601c Put additional Select Next/Previous Tab shortcuts in main menu (10.13)
These are added as hidden items and do make the menu flash, when the keys are used.
2018-11-01 11:28:08 +07:00
Allan Odgaard
00d4c4f23a Update constant names for 10.10 2018-10-31 23:08:33 +07:00
Allan Odgaard
48605ef4e9 The bundle selection menu now uses same appearance as the calling view
Only when there are no open windows, and the user is triggering the bundle item selection menu, will it default to the light aqua appearance.
2018-10-31 10:32:46 +07:00
Allan Odgaard
e8a3cb8f57 Do not use OakFileIconImage for menu items and recent projects
On macOS 10.14 this image doesn’t always render, so this is a temporary workaround.

The main advantage of using OakFileIconImage is the added SCM badge and custom icon for known file types.
2018-10-31 00:54:01 +07:00
Allan Odgaard
392c1ae954 Use separatorColor dividers in Open Quickly (⌘T) and friends
Not too fond of how this looks in Dark Mode but I think it’s better than the previous colors, which stem from back when the window had more of a 3D look.
2018-10-30 20:53:10 +07:00
Allan Odgaard
8f32a740b3 Don’t use textured windows for Open Quickly (⌘T) and friends
When building on 10.14 the textured window look does not provide a borderless title bar look as the window content is lighter than the title bar.

The solution is to move the search controls to the title bar, which is possible starting with 10.10.
2018-10-30 20:46:55 +07:00
Allan Odgaard
82de01589f Update deployment target of all xib files to 10.10 2018-10-30 13:46:34 +07:00
Allan Odgaard
56c7e34f74 Checkin release notes for 2.0-rc.11 2018-10-30 11:53:35 +07:00
Ronald Wampler
05e61188ee Change Select Previous/Next Tab key equivalents
⌃⇧⇥ and ⌃⇥ are the preferred system wide shortcuts for changing tabs. In order to avoid a disruptive change, the previous shortcuts are still supported (in fact, it appears that all apps using the system tabbing mechanism support the previous shortcuts as well).
2018-10-29 11:47:56 +07:00
Ronald Wampler
14cd991a1d Move "Select Previous Tab" above "Select Next Tab"
This makes the Window menu more consistent with system apps.
2018-10-29 11:47:56 +07:00
Allan Odgaard
b57e784db5 Remove import of unused header 2018-10-28 10:15:56 +07:00
Allan Odgaard
4bec98127e Eliminate the optional menu title argument for MBCreateMenu
If a specific title is required, one can simply let the second argument be: [[NSMenu alloc] initWithTitle:«title»]
2018-10-15 06:11:39 +02:00
Allan Odgaard
f6fa273912 Update coding style for where to place colon after dictionary keys
This follows the Swift style and also makes it possible to align dictionary values using TextMate’s Align Assignments command.
2018-10-07 09:54:45 +02:00
Allan Odgaard
d93972f958 Calling ‘mate -w’ repeatedly would not always return focus to terminal
See comment in the code for further details.
2018-10-05 18:15:19 +02:00
Allan Odgaard
cc9faa6024 Prefix member data with underscore and do not capture it in debug output 2018-10-05 18:01:31 +02:00
Allan Odgaard
43fc65805d Add NSAppearanceName stuff from the macOS 10.14 SDK 2018-08-21 11:42:25 +02:00
Allan Odgaard
dc99a0f14b Use objectForInfoDictionaryKey: instead of localizedInfoDictionary 2018-07-30 22:37:35 +02:00
Allan Odgaard
417e2080f8 Remove use of oak::application_t in NewApplication template 2018-07-10 10:55:56 +02:00
Allan Odgaard
52fda481dc Change beta/nightly software update constants to prerelease/canary 2018-06-28 10:40:27 +02:00
Allan Odgaard
b577c580c4 Change Check for Updates → Check for Update (singular) 2018-06-28 10:40:27 +02:00
Allan Odgaard
e70791ee89 Rename a bunch of constants to fix deprecation warnings (10.12) 2018-06-16 22:55:30 +02:00
Allan Odgaard
00399543b3 Checkin release notes for 2.0-rc.10 2018-06-12 00:03:25 +02:00
Allan Odgaard
7031dfd415 Escape newlines and backslashes in parameters sent by mate to TextMate 2018-06-11 08:13:26 +02:00
Allan Odgaard
55d915a97b Fix out-of-range string access in mate protocol parser
This would happen if the mate server received a line with no argument and no leading space before the argument, e.g.: `key:\n`.

This could be triggered using `--set-mark` since newlines in the payload are not being escaped.

Fixes textmate/bugs#27
2018-06-11 08:13:26 +02:00
Allan Odgaard
f920ff058a Tidy up main menu
This means remove unnecessary targets, unused tag values, empty submenus, and trailing separator items.
2018-04-30 15:30:48 +07:00
Allan Odgaard
8bda806ef9 Create dock menu in our application delegate 2018-04-30 15:30:48 +07:00
Allan Odgaard
87ad8f6559 Create main menu in our application delegate
The advantages are:

- More compatible with version control
- Easier to copy/paste menus and menu items between other projects
- Easier to setup menu delegates or obtain pointers to menu items
- We can use symbolic names when setting a menu item’s tag
- More transparent: We can read the declaration in a few minutes, use search, etc.

There are two disadvantage that I can think of:

1. We currently need to use private API to create the Open Recent submenu. Should this become a problem in a future macOS update, we can always create a single Open Recent menu in MainMenu.nib and use that when building our menu.

2. If you make a typo in the menu declaration then the compiler error will often just point to the first line of the declaration rather than the line with the incorrectly declared item. One can comment out sections to narrow it down, if many edits have been made since last compile.
2018-04-30 15:30:48 +07:00
Allan Odgaard
b8b46d1ae3 Add header for OakMainMenu (menu subclass) 2018-04-30 15:30:48 +07:00
Allan Odgaard
bafe0e572b Rename ApplicationController → AppDelegate 2018-04-30 15:30:48 +07:00
Allan Odgaard
fa0e055755 Update main menu template to what’s included with Xcode 9.2 2018-04-30 15:30:48 +07:00
Allan Odgaard
82ac2daa85 Let our application delegate create the main menu 2018-04-30 15:30:48 +07:00
Allan Odgaard
81b888d61e Checkin release notes for 2.0-rc.9 2018-04-25 21:43:51 +07:00
Allan Odgaard
c1bb559a38 Revert "Add ‘public.data’ to list of supported file types for QuickLook plug-in"
This causes TextMate’s QL generator to take over thumbnail generation of all binary files (without a dedicated QuickLook plug-in), for example disk image files.

There does not seem to be any way to dynamically opt out of thumbnail generation, it’s all or nothing, therefor we would either need to completely remove support for thumbnail generation or not support QuickLook previews for files without extension.

For now it’s the latter.

This reverts commit fd827fb817.
2018-04-25 21:43:51 +07:00
Allan Odgaard
494290cc19 Checkin release notes for 2.0-rc.8 2018-04-25 21:43:51 +07:00
Allan Odgaard
a232a1848b Update copyright to 2004-2018
We are back to showing a range motivated by a comment from @nanoant: 76cc25b2a6 (commitcomment-21502195)
2018-03-08 16:05:52 +07:00
Jacob Carlborg
e3ded6e2f9 Add imported and exported type declarations for D
This will make the system properly recognize D source files.
2018-03-08 16:05:31 +07:00
Pravdomil
fd827fb817 Add ‘public.data’ to list of supported file types for QuickLook plug-in
This enables QuickLook preview for text files without extension such as README, LICENSE, etc.
2018-02-06 22:59:27 +07:00