28 Commits

Author SHA1 Message Date
Allan Odgaard
dae1103728 Update LINK declarations 2019-07-16 19:42:29 +02:00
Allan Odgaard
f5d0f38cc7 Don’t update NSUSerDefaults in OakTabBarView’s initialize
The use of an animator proxy is causing the initialize method to be called during animation, and when registering user defaults in initialize, we may trigger key/value observers to be notified, which for this code can result in a crash in OS code with the message: “Trying to recursively lock an os_unfair_lock”.
2019-07-13 11:18:20 +02:00
Allan Odgaard
1ef78b3af7 Rename symbols to what’s expected by the 10.14 SDK 2019-06-29 20:14:15 +02:00
Ronald Wampler
85a11ba0bf Check whether or not indexOfObject: returns NSNotFound 2018-12-06 21:59:32 +07:00
Allan Odgaard
a6e6437262 Set ‘accessibilityElement’ on NSControl’s cell object
An alternative to accessing the cell directly is using NSAccessibilityUnignoredDescendant to obtain the object, but while it seems to abstract away whether or not it is the control or its cell which participates in accessibility, we forego the type checker.
2018-12-05 21:16:54 +07:00
Allan Odgaard
fab38c6def Check whether or not indexOfObject: returns NSNotFound 2018-12-04 15:43:15 +07:00
Allan Odgaard
dd77fcd6e1 Add one line of margin below tab views
At least on macOS 10.14 the auxiliary titlebar view is placed so that the bottom line of the view overlaps with the divider that separates the titlebar from the window content.

While the tab view background color is using alpha, the divider was still visible, but it didn’t look that good when using the light appearance.
2018-12-02 23:30:07 +07:00
Allan Odgaard
66b1eb906a Only skip updating to new layout when reloadData results in same layout
The problem with having the check in updateToLayout: is that the background view that extends to right window edge is not part of the layout, so while the width of this view may change when resizing the window, it would not result in a different layout.
2018-12-02 23:16:17 +07:00
Allan Odgaard
a1459bd135 Hide left border of first tab by placing it at X position -1 2018-12-02 23:15:13 +07:00
Allan Odgaard
f92a50b59a Remove unused tab bar graphics 2018-12-02 18:08:38 +07:00
Allan Odgaard
f2d38e4e0f Update OakTabBarView to use title bar material for active tab 2018-12-02 18:08:38 +07:00
Allan Odgaard
6aaa1df99b Do not let the tab bar itself handle expanded/collapsed state 2018-11-07 15:28:42 +07:00
Allan Odgaard
1350c4c904 Send performClose: to window delegate instead of to OakTabBarView
This is in preparation of moving the tab bar view out of the window content view and into the titlebar.
2018-11-05 19:16:24 +07:00
Allan Odgaard
10ef832b37 Rename setSelectedTab: → setSelectedTabIndex: 2018-11-05 19:16:24 +07:00
Allan Odgaard
b05ef9d3f9 Limit public API of OakTabBarView 2018-11-05 19:16:24 +07:00
Allan Odgaard
892a6072ae Move OakTabBarStyle to own header
This allows us to make OakTabItemView.h a private header.
2018-11-03 11:17:08 +07:00
Allan Odgaard
14ae6019bf Update all instances of accessibilitySetOverrideValue:forAttribute: 2018-11-02 08:40:39 +07:00
Allan Odgaard
dd41b992f7 Assume @available directive is available (Xcode 9) 2018-10-31 22:56:24 +07:00
Allan Odgaard
0c0e9288bc Remove code and graphics for rendering tabs prior to 10.10 2018-10-30 12:41:49 +07:00
Allan Odgaard
f2ef1b90cd Move settings key from OakTabBarView to Preferences framework
We provide a default value for this key in the Preferences framework, therefor the symbol needs to be defined there.
2018-10-12 19:38:11 +02:00
Ronald Wampler
9049d995ed Introduce OAK_AVAILABLE macro
Newer versions of clang now warn when using API's that are only available on OS version newer than the target OS unless they are guarded using `@available`.

This is temporary and should be remove when we move away from older versions of Xcode.
2018-10-12 19:37:41 +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
e9bf48fbc0 Use controlTextColor (instead of blackColor) in a few places 2018-10-06 10:46:53 +02:00
Ronald Wampler
cf06fb3d94 OakTabBarView: Support Dark mode (10.14) 2018-08-21 11:42:25 +02:00
Ronald Wampler
59e6cad9e0 Make "TabClose" images templates 2018-08-21 10:21:27 +02:00
Ronald Wampler
ffec68288c Add OakTabBarView images for Dark mode (10.14) 2018-08-21 10:21: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
503d493f47 Move OakTabBarView into its own framework
The motivation is to get an OakAppKit that does not include hundres of image resources.
2017-10-07 13:58:35 +02:00