just compiled Mac OS Example for Mac OS 14.0 with Xcode 15 (15A240d)
What did you expect to happen?
no warnings when compiling for MacOS 10.14 and newer
What happened instead?
warning: 'init(focusedViewRect:)' was deprecated in macOS 10.14: Use -[NSView cacheDisplayInRect:toBitmapImageRep:] to snapshot a view.
in Platform+Graphics - functions: NSUIImagePNGRepresentation, NSUIImageJPEGRepresentation!
What did you do?
just compiled Mac OS Example for Mac OS 14.0 with Xcode 15 (15A240d)
What did you expect to happen?
no warnings when compiling for MacOS 10.14 and newer
What happened instead?
warning: 'init(focusedViewRect:)' was deprecated in macOS 10.14: Use -[NSView cacheDisplayInRect:toBitmapImageRep:] to snapshot a view. in Platform+Graphics - functions: NSUIImagePNGRepresentation, NSUIImageJPEGRepresentation!
DGCharts Environment
DGCharts version: latest master Xcode version: Xcode 15 (15A240d) Swift version: 5 Platform(s) running DGCharts: MacOS 17.01 macOS version running Xcode: 17.01
Possible fix:
BEGIN OF INSTRUCTIONS
CHANGE IN FILE "ChartViewBase.swift" :
CHANGE in FILE "Platform+Graphics.swift"
END OF INSTRUCTIONS
Comments:
Sorry for this unusual reply, but I have no access to add a new branch to your Rep- Hope it helps anyway.
Any Reply/Questions can be send to: wbernard@me.com