786 Commits

Author SHA1 Message Date
Allan Odgaard
f83d3b2e14 Checkin release notes for 2.0.1 2019-10-07 12:37:35 +02:00
Sam Oldak
ad9229b591 Update Changes.md
typo
2019-10-06 11:09:39 +02:00
Allan Odgaard
fee760cf3d Disable the library validation entitlement
This should allow TextMate to load plug-ins that are not signed by Apple or signed with the same team ID as TextMate.
2019-10-06 10:54:23 +02:00
Allan Odgaard
54b232f6b1 Checkin release notes for 2.0 2019-09-15 17:18:12 +02:00
Allan Odgaard
77df3c2618 Remove the decompile_as target as it is no longer used
See b05fe06abe
2019-09-05 10:00:19 +02:00
Allan Odgaard
aa10cd1e57 Checkin release notes for 2.0-rc.31 2019-08-26 21:49:58 +02:00
Allan Odgaard
36dc1374f9 Revert "Add debug output when TextMate is activated via mate"
This reverts the following 3 commits:

- commit 306d46ec71
- commit eecfe6e619
- commit 2ffc74ad8b
2019-08-26 21:19:17 +02:00
Allan Odgaard
88e5f1cd3c Checkin release notes for 2.0-rc.30 2019-08-21 11:56:45 +02:00
Allan Odgaard
c4cec82869 Checkin release notes for 2.0-rc.29 2019-07-16 08:35:13 +02:00
Allan Odgaard
ad74df7824 Include explanation in the log message for when a plug-in fails to load
Credit: https://lists.macromates.com/textmate/2019-July/041047.html
2019-07-15 21:41:30 +02:00
Allan Odgaard
027038aaed Checkin release notes for 2.0-rc.28 2019-07-13 10:21:44 +02:00
Allan Odgaard
2ffc74ad8b Add debug output when TextMate is activated via mate
Some users report a significant delay from executing mate until the TextMate window is brought to front.

The debug information can be extracted by running the following in a terminal:

    log show --predicate 'subsystem = "com.macromates.TextMate" && category = "BringToFront"'

Alternatively use `stream` instead of `log` to get a live stream of debug output.

See `man log` for options such as `--start date/time` (to limit the query to e.g. the last 10 minutes)
2019-07-13 10:20:09 +02:00
Allan Odgaard
be677cb0b4 Checkin release notes for 2.0-rc.27 2019-07-08 13:10:18 +02:00
Elia Schito
e9033911f0 Fix the background-size of the about window
Using background-size: 50% results in really bad scrolling performance and 
doesn't not achieve the effect of scaling the image to double the pixel density,
it rather sets the image width to 50% of the element.

Using the non-retina image size solves both the problems.

A similar issue was found in this SO page: https://stackoverflow.com/a/7034772
2019-07-08 13:04:32 +02:00
Allan Odgaard
7f9f295870 Checkin release notes for 2.0-rc.26 2019-07-08 07:35:33 +02:00
Allan Odgaard
9cc10e7b72 Checkin release notes for 2.0-rc.25 2019-07-07 23:11:52 +02:00
Allan Odgaard
8f3f3d9d16 Update deployment version for xibs to 10.12
This was done using search and replace. Presumably it should be done in Xcode so that it can adjust the xib for the new deployment target, otherwise what is the point of storing deployment version in the xib and provide it as a command line argument to the xib compiler as well (only to get a warning if the versions do not match)?
2019-07-07 18:03:30 +02:00
Allan Odgaard
11d67f3a22 Avoid NSString’s deprecated percent encoding methods 2019-06-30 10:32:45 +02:00
Ronald Wampler
b71efb0065 Add support for "Customize Touch Bar…" in MenuBuilder 2019-06-30 10:32:45 +02:00
Allan Odgaard
1ef78b3af7 Rename symbols to what’s expected by the 10.14 SDK 2019-06-29 20:14:15 +02:00
Allan Odgaard
0829884a4b Use ${TARGET_NAME} instead of $(PRODUCT_NAME) in Info.plist
The latter was not valid variable syntax and was used as a literal string in the Info.plist.
2019-06-29 15:24:26 +02:00
Allan Odgaard
9078ae7771 Use __DATE__ instead of (custom) COMPILE_DATE macro
I prefer the YYYY-MM-DD format of our custom macro, but it has a problem with precompiled headers in that the macro changes value daily, and so, if specified when precompiling headers, they become invalid the next day.

Previously we solved it by declaring the macro only for application targets, but the new build system is not hierarchical in the same way and does not currently support this.
2019-06-26 23:32:54 +02:00
Allan Odgaard
8e2de26529 Move PLIST_FLAGS to TextMate’s target specification 2019-06-26 23:32:54 +02:00
Allan Odgaard
9f6781ec3f Get rid of the APP_NAME variable 2019-06-26 23:32:54 +02:00
Allan Odgaard
1c5fc62f86 Do not include $APP_NAME in QuickLook generator’s bundle identifier
This was redundant as the final component is TextMateQL ($TARGET_NAME).
2019-06-26 23:32:54 +02:00
Allan Odgaard
412e6798ca Update build generator script
This changes a bunch of things:

1. Each framework now creates its own include directory for exported headers, and any target linking with this framework, gets that directory added to its include search path. This ensures deterministic behavior, unlike previously where a single shared directory was used, so even if target A did not explicitly link with target B, there was a reasonable chance that target B’s headers would be available when target A was built.

2. There is a new IMPORT keyword to indicate that a target depends on the headers of another framework but does not want to link with it. For example the `commit` shell command imports headers from the CommitWindow framework (related to their communications protocol) but linking with the CommitWindow framework would not be practical (as that would bring in all the resources of the CommitWindow).

3. All embedded targets are signed before being copied to their destination.

4. A new CS_ENTITLEMENTS keyword allows specifying `codesign` entitlements. Currently the hardened runtime is enabled, although this does make development problematic, as modifying files of a running instance (as done during rebuild) can cause TextMate to crash with EXC_BAD_ACCESS (Code Signature Invalid). Worse though, it seems the system has a cache of blacklisted executables indexed by inode. So if e.g. the embedded `mate` executable gets blacklisted, one has to manually remove and rebuild it, before it gets possible to use it again (by default, rebuilding causes the inode to be re-used, but I may change the build system to unlink before copy).

5. The build file no longer contains rules related to deployment. Instead variables are declared that a user build file can reference to extend the build with notarization/deployment rules (without having to hardcode build directory paths).

6. The code has been made modular with a Compiler super class that is subclassed to add support for file transformations (xib, ragel, asset catalogs, etc.) and a transformed file can have its own settings.

7. If target A links with target B, the linker flags of target B will now be included when linking target A.

8. Currently no indexing of help books. Unsure if this is actually useful.

9. Previously it was possible to have umbrella targets that would not generate any output, but just change settings for their sub-targets. This is no longer supported, as the implementation was arcane. I would like to introduce a different system for managing sectioned settings. Related to this; settings in target files are now always merged, regardless of whether using ‘=’ or ‘+=’.
2019-06-26 23:32:19 +02:00
Allan Odgaard
9dbc4b3781 Add codesign entitlements (unused by current build system) 2019-06-26 13:21:11 +02:00
Allan Odgaard
db706b8e99 Add NSAppleEventsUsageDescription 2019-06-26 13:21:11 +02:00
Allan Odgaard
b5b36a558b Add missing framework dependencies 2019-06-26 13:21:11 +02:00
Allan Odgaard
694877aad1 Checkin release notes for 2.0-rc.23 2019-03-19 12:16:21 +07:00
Allan Odgaard
d3bce0e5ea Bump copyright year to 2019 2019-02-21 14:46:19 +07:00
Allan Odgaard
fc0ada2500 Fix (or update?) type of argument passed to CFPropertyListWrite 2019-02-21 13:29:29 +07:00
Ronald Wampler
3eda80a87d Update link for Oniguruma official site
See https://github.com/kkos/oniguruma/issues/1.
2018-12-07 12:48:34 +07:00
Ronald Wampler
1fabf6d5c4 Remove legal notice for XcodeEditor
The use of this framework was dropped in 4d82e4b109.
2018-12-07 12:48:34 +07:00
Allan Odgaard
a3612be0f9 Checkin release notes for 2.0-rc.22 2018-12-06 22:06:10 +07:00
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