# macOS Document Based Application Save&Load

**URL:** <https://forums.kodeco.com/t/macos-document-based-application-save-load/24347>\
**Category:** macOS\
**Created:** [December 21, 2016, 9:36am UTC](https://forums.kodeco.com/t/macos-document-based-application-save-load/24347 "2016-12-21T09:36:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fritz](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/fritz/32/81494_2.png) [@fritz](https://forums.kodeco.com/u/fritz)\
**Post date:** [December 21, 2016, 9:36am UTC](https://forums.kodeco.com/t/macos-document-based-application-save-load/24347/1 "2016-12-21T09:36:43Z")

</div>

I set up a document based macOS application.  
In a custom view (bezierview.swift) I have four NSPoints that I want to Save&Load (in document.swift). As I’m rather unexperienced with Swift3 I have the problem how to get these 4 NSPoints (changed by mouse dragging) from bezierview.swift to document.swift and how to save&load them as e.g. JSON…  
Maybe somebody can help.
