Previously the save dialog would update encoding settings solely based on the path, but the user could set different line endings or character set for a file type (rather than extension).
A few of these names clash with our file type icons (Blank, C, JavaScript, Python, Ruby, and Text) so we need to change one of the sets if we want to build TextMate.app with a single Resources folder (instead of keeping resources with their respective frameworks).
It is not unlikely to have multiple versions of Xcode installed which all use the same bundle identifier, but we want to select a specific one for opening xib files etc.
This is only for regular expressions and for these we bypass the normal “show invisibles” code, this is only because it would add code complexity and regular expressions are less likely to contain newlines or tab characters.
Previously we would save 60 seconds after a change, but successive changes would not bump the timer, and we had a timer per pasteboard, so changing both the find and replace pasteboard would schedule two save operations, even though they share context.
Now we save 30 seconds after any of the pasteboards were last changed.
Currently this bumping is limited to the Find dialog and happens when executing a search. Selecting from the Show Find History or subsequently using ⌘G, does not bump the date of the selected item (but probably should).
We only support building with the 10.11 and 10.12 SDK, so this code is no longer required.
Also added MAC_OS_X_VERSION_10_10 comments around 10.10 API that we conditionally use. This is just to make it easier to find it when bumping the minimum OS requirement.
The child window is already put on-screen when added to the parent, calling orderFront: will bring the parent window to front, which we do not want, as the animation may be triggered e.g. from the Find dialog (using ⌘G/⇧⌘G in that window).
The system can be updating the menu only to resolve a key equivalent, hence the image is not required. The document icon can be a little expensive to create because of the SCM badge. This would be noticeable when doing a folder search with hundres or thousands of results and then pressing ⌘1, here it would previously need to create all the document icons before responding to the key.
When a menu item has a custom app shortcut it is necessary to keep the original title as we would otherwise lose the custom app shortcut defined by the user (using the original title).
If we order out the window then the animation does not run to completion which means that our delegate’s ‘did stop’ method is not called, but this method is responsible for breaking our retain cycle.
Ideally we would render a pin or similar for sticky tabs, but until we do, let’s not have this unused property, as it doesn’t reflect the document’s state.
When holding e.g. ⌘G with no matches, we repeatedly create new tool tips and the queue with the “orderOut:” messages appear to not be handled until ⌘G is released, resulting in a lot of tool tips being created.