From: masakih Date: Mon, 13 Aug 2018 15:05:59 +0000 (+0900) Subject: 10.13以降は CGGlyph を使用するようにした X-Git-Url: http://git.osdn.net/view?p=kcd%2FKCD.git;a=commitdiff_plain;h=43cc476b0cab6df34fd1dffc4f34f4884ce9ef0d;ds=sidebyside 10.13以降は CGGlyph を使用するようにした --- diff --git a/KCD/StrokeTextFieldCell.swift b/KCD/StrokeTextFieldCell.swift index 2870fd15..7ea4da50 100644 --- a/KCD/StrokeTextFieldCell.swift +++ b/KCD/StrokeTextFieldCell.swift @@ -69,13 +69,16 @@ final class StrokeTextFieldCell: NSTextFieldCell { point.y -= controlView.frame.height } - let nsGlyph = UnsafeMutablePointer.allocate(capacity: range.length) - - (0...allocate(capacity: range.length) + + (0..