Update NewInCocoa2018 notes.

This commit is contained in:
Brent Simmons 2018-07-21 13:11:20 -07:00
parent 2a37a90c59
commit fe3a7addd1
4 changed files with 26 additions and 3 deletions

View File

@ -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

View File

@ -0,0 +1,8 @@
# Whats 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

@ -1 +1 @@
Subproject commit 1b20fde3a79dc6b81e7fcb63c81aee8add56e380
Subproject commit 6b32b49bed78535ae0e608a23edf04df5a9a0c70

@ -1 +1 @@
Subproject commit 0c68ac2744f8115761a72a1f52a46cb5c0d4ec37
Subproject commit 4e7358074ed3c358ebfe3741a38f43e020665694