From fe3a7addd1c085f3928d89ccadd36fc7b00e4021 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Sat, 21 Jul 2018 13:11:20 -0700 Subject: [PATCH] Update NewInCocoa2018 notes. --- Technotes/DarkMode.md | 17 ++++++++++++++++- Technotes/NewInCocoa2018.md | 8 ++++++++ submodules/DB5 | 2 +- submodules/RSDatabase | 2 +- 4 files changed, 26 insertions(+), 3 deletions(-) create mode 100644 Technotes/NewInCocoa2018.md diff --git a/Technotes/DarkMode.md b/Technotes/DarkMode.md index cf95cae43..70cfb4788 100644 --- a/Technotes/DarkMode.md +++ b/Technotes/DarkMode.md @@ -1,4 +1,4 @@ -# Dark Mode +# Dark Mode - WWDC 2018 https://developer.apple.com/documentation/appkit/supporting_dark_mode_in_your_interface https://developer.apple.com/videos/play/wwdc2018/210/ @@ -36,4 +36,19 @@ Build with 10.14 SDK NSAppearanceCustomization NSView, NSWindow conforms NSWindow.appearanceSource +Configure NSBox to fill color to get desired material +visualEffectView.maskImage + Can do drawing handler images - for instance with a path +backgroundStyle on rows - .normal and .emphasized +Backward deployment… +Most system colors are available pre-Mo +Asset catalogs available on 10.13 +Find hardcoded colors, use asset catalog colors +NSColor(named: "SomeColor") +Prefer block-based image drawing instead of lockFocus +Prefer NSTextField to drawing strings + + + + diff --git a/Technotes/NewInCocoa2018.md b/Technotes/NewInCocoa2018.md new file mode 100644 index 000000000..bbd850837 --- /dev/null +++ b/Technotes/NewInCocoa2018.md @@ -0,0 +1,8 @@ +# What’s New in Cocoa - WWDC 2018 + +https://developer.apple.com/videos/play/wwdc2018/209/ + +NSImage(named: string) is now allowed! +NSMenuItemValidation is now a real protocol, other informals have been made real +Secure coding with NSKeyedArchiver, unarchiver + diff --git a/submodules/DB5 b/submodules/DB5 index 1b20fde3a..6b32b49be 160000 --- a/submodules/DB5 +++ b/submodules/DB5 @@ -1 +1 @@ -Subproject commit 1b20fde3a79dc6b81e7fcb63c81aee8add56e380 +Subproject commit 6b32b49bed78535ae0e608a23edf04df5a9a0c70 diff --git a/submodules/RSDatabase b/submodules/RSDatabase index 0c68ac274..4e7358074 160000 --- a/submodules/RSDatabase +++ b/submodules/RSDatabase @@ -1 +1 @@ -Subproject commit 0c68ac2744f8115761a72a1f52a46cb5c0d4ec37 +Subproject commit 4e7358074ed3c358ebfe3741a38f43e020665694