Commit Graph

402 Commits

Author SHA1 Message Date
Allan Odgaard
417193e089 Update link dependencies for all targets
Some targets were including headers from frameworks not specified in their link dependencies. For a clean build this could cause an issue because the header was not available at the time of building the target.

The updated link dependencies are also based on what a target’s tests require. Ideally tests would have separate link dependencies, but as we don’t want to maintain this manually, this will have to wait until the build system automatically handles link dependencies.

Currently the commit command uses constants from the CommitWindow framework but should actually not be linked with it. However, the optimizer will strip dead code, so it should not result in much if any difference in the resulting binary and does solve a build dependency issue.
2016-05-07 13:00:55 +02:00
Allan Odgaard
5af24f2c5e Call super’s init in designated initializer
This is to silence new warnings.
2015-11-20 13:25:02 +07:00
Allan Odgaard
bdbf82837f Add typecast to suppress warning with 10.11 SDK 2015-11-20 13:14:40 +07:00
Allan Odgaard
3478457098 Pass non-null arguments where the 10.11 SDK requires it 2015-11-20 13:12:16 +07:00
Allan Odgaard
b55ef5b09a Save all xibs with Xcode 7.1 (7B91b)
This was done in an attempt to prevent the warning saying “This file is set to build for a version older than the project deployment target.”

Unfortunately saving all the xibs did not get rid of the warning, even though tehy are all set to have 10.7 as their build target.

The latest xib format does however remove about 10.000 lines of XML.
2015-10-26 23:26:17 +07:00
Allan Odgaard
cb1c51692c Bind Go to Tab → Last Tab to ⌘9 instead of ⌘0
Also avoid binding to ⌘0 in all other ⌘1-n contexts.

This frees up ⌘0 to “Reset Font Size”.
2015-10-16 19:52:47 +07:00
Michael Sheets
b06f20ca72 Add project scope for Cargo (Rust) projects (attr.project.cargo) 2015-10-10 19:30:22 -05:00
Ronald Wampler
f29ddf6500 Declare new protocols when building for 10.11
These were informal protocols prior to 10.11.
2015-09-21 09:50:20 -04:00
Allan Odgaard
d1ed42fef1 Use isOperatingSystemAtLeastVersion: to check for 10.10
The method wasn’t public before 10.10 but since we need to check for 10.10 we can simply conclude that lack of this method means that we are not running on 10.10.
2015-08-05 12:29:33 +02:00
Allan Odgaard
b440a8681f Remove OakImageAndTextCell class 2015-07-30 22:18:39 +02:00
Allan Odgaard
ecf8cbc0bf Never update OakFileIconImage states that are not marked dirty 2015-07-30 14:12:07 +02:00
Allan Odgaard
297c1c7ea5 Limit the tab bar items’ tool tips to the title string
This prevents having a tool tip show when hovering the close button (as can often happen when closing multiple tabs).
2015-07-27 18:43:14 +02:00
Allan Odgaard
6aad406dde Use symbolic constants for binding properties 2015-07-20 12:10:23 +02:00
Allan Odgaard
a13b75ebc4 Use isEqualToXYZ: or isEqual: instead of isEqualTo: 2015-07-20 12:10:05 +02:00
Allan Odgaard
497afab82b Update roll-over button state when control is hidden
If the button gets hidden while the mouse is hovering above it then it’ll not receive a mouseExited: message once the mouse leaves its bounds (while the control is hidden).
2015-07-20 11:41:02 +02:00
Allan Odgaard
2f30d7d368 Remove support for nested arrays when setting key view loop 2015-07-20 11:40:22 +02:00
Allan Odgaard
699cdd72cb Include scope bar in key view loop (rather than its buttons) 2015-07-20 11:40:14 +02:00
Allan Odgaard
7cb3835c3b Preserve next key view when a descendent of our previous key view
This allows bottom-up construction of the key view loop.
2015-07-20 11:39:54 +02:00
Allan Odgaard
ae9fef95a4 Fix copy support for OakFileIconImage 2015-07-20 11:30:45 +02:00
Allan Odgaard
2de5395ba5 Remove reference to OFBPathInfoCell 2015-07-20 11:28:53 +02:00
Allan Odgaard
457969788e Use std::tuple for the OS version
This makes compatibility checks simpler, since we can use a single comparison operator.
2015-06-23 22:46:58 +02:00
Allan Odgaard
af82d6e540 Update OakTabBarView to use NSDraggingSession API (10.7)
Previously used API has been deprecated.
2015-06-15 16:47:01 +02:00
Allan Odgaard
e8cba4dbae Support reloading tab bar view while a tab is being dragged
This would happen if dragging a tab into an unmodified document (in the same window) while holding down control (to insert the path of the dragged tab).

Here the document would change state to “modified” which would trigger a tab bar view reload, but since the drag session isn’t completed, we reload the tabs while one of them is “outside” the bar, which causes it to be added, and once the drag session completes, the original tab outside the bar, will be re-added, leading to two copies of the same tab.
2015-06-15 12:37:09 +02:00
Ronald Wampler
4aff7098a5 Use std::abs instead of abs()
This suppresses a couple of warnings with the latest version of clang shipped with Xcode 6.3.
2015-04-30 15:15:56 +02:00
Jason Gavris
f9e8192d00 Fix t_bump_date timezone 2015-04-30 15:15:56 +02:00
Yuu Q
5a1754bc01 Add missing shadow to find/replace history pop-up list
The NSComboBox, whose pop-up list has shadow, and so it will be nice for this similar control.
2015-03-28 09:45:41 +07:00
Allan Odgaard
9c69badaf6 Save with Xcode 6.2 (6C131e) 2015-03-28 09:45:40 +07:00
Koen Punt
6aa81a0eb9 Fix typo, delsyedPlaySound => delayedPlaySound 2015-03-25 12:38:39 +07:00
Allan Odgaard
65480a60bf Find dates surrounded by underscores in path names 2015-03-25 12:36:30 +07:00
Allan Odgaard
245450ae9f Add test for updating date in file path string 2015-03-25 12:25:12 +07:00
Allan Odgaard
daa32482bf When duplicating a file with a YYYY-MM-DD date we bump the date
This is instead of adding “copy” to the base name.

This is useful when you use a previous (dated) document as template for a new one, e.g. an invoice, meeting minutes, or similar.
2015-03-23 18:01:47 +07:00
Allan Odgaard
31464f39fd Send performCloseTab: to our delegate instead of next responder
A delegate was introduced (out of necessity) in 6748c28109 but we didn’t use it for everything, leading to inconsistent code.
2015-03-23 11:53:21 +07:00
Koen Punt
808aaabc44 Add NSOtherMouseUp to OakIsAlternateKeyOrMouseEvent
To allow the alternate behavior (“close other”) when clicking a tab with the middle mouse button.
2015-03-23 11:28:19 +07:00
Koen Punt
436068cbb7 Allow closing tabs on “other” (middle) mouse button 2015-03-23 11:28:19 +07:00
Allan Odgaard
8829637b6c Workaround for control-click not sent to superview
We only add this workaround to tab item views and rollover buttons, but the issue applies to all subviews that do not have their own context menu, but placed in a superview which does.

Closes textmate/bugs#11
2015-03-18 11:01:29 +07:00
Allan Odgaard
0e309b1056 Add “never hide left border” tab bar view property
We set this when the file browser is on the left of the tab bar view.
2015-03-05 16:38:10 +07:00
Allan Odgaard
c710ee8b7a Remove unused code 2015-03-05 16:38:09 +07:00
Allan Odgaard
8d15a4972d Fix logic to detect Yosemite or later 2015-03-05 16:38:09 +07:00
Allan Odgaard
40879d5683 Replace sizeofA macro with range-based for loop or std::begin/end 2015-03-05 16:38:09 +07:00
Adam Strzelecki
0ca21f9c75 Use black text color selected tab on Yosemite
This is more inline with Safar, Xcode & Terminal look on Yosemite.
2015-03-05 16:11:43 +07:00
Allan Odgaard
638b813d9f Account for tab item’s padding when doing partial layout
This partial layout is done when closing tab X to ensure that the close button of tab X+1 will occupy the same rectangle as was used by X.

Closes #1285.
2015-01-31 12:15:33 +07:00
Ronald Wampler
130d7615d2 Make OakTabBarStyle properties readonly
We do not modify these properties after initialization. Furthermore, where we do access them, we mark them as `const`.
2015-01-31 12:05:44 +07:00
Ronald Wampler
566cba3b44 Mark local variable as const 2015-01-31 12:05:44 +07:00
Ronald Wampler
a9e48c01e6 Explicitly set the value for the left and right padding
While these properties are initialized to zero upon `alloc`, I think it makes the code easier to follow to explicitly set `leftPadding` and `rightPadding` to zero (if zero is desired) since the reader does not have to look around to ensure they aren't being set elsewhere.
2015-01-31 12:05:44 +07:00
Allan Odgaard
a0b79c7dfb Increase mouse movement threshold for what is considered a click 2014-11-27 10:29:00 +07:00
Allan Odgaard
79eb970b9b Use NSIsEmptyRect instead of comparing with NSZeroRect 2014-11-17 00:04:34 +01:00
Michael Sheets
d458e7604a Use template icon for .twig files 2014-11-15 15:53:13 -06:00
Allan Odgaard
2942f92464 Increase clickable area for the tab overflow button
The button frame has been extended to the top/bottom of the tab bar and on Yosemite there are 3 pixels of padding to the right of the image (which are thus part of the button and hence clickable).
2014-11-15 13:08:13 +01:00
Allan Odgaard
ce34f6fa15 Use our wrapper for adding views with auto layout enabled 2014-11-10 09:05:14 +01:00
Allan Odgaard
7d2ed9a236 Set initial first responder when setting up key view loop 2014-11-06 16:42:22 +01:00