Posts

Post marked as solved
2 Replies
353 Views
I need to see a sample code in order for me to understand. I am learning about NSDocuments, having created the starting template from Xcode. My Document consists of an Integer and the storyboard has a field to display and a button to increment the value. I need to learn how to store and read my Document data, a single Integer. This is what Xcode gives me: var myData: Int = 0 //my Document's Data. override func data(ofType typeName: String) throws -> Data { throw NSError(domain: NSOSStatusErrorDomain, code: unimpErr, userInfo: nil) } override func read(from data: Data, ofType typeName: String) throws { throw NSError(domain: NSOSStatusErrorDomain, code: unimpErr, userInfo: nil) }ive tied a few guesses but am completely lost; help me please.
Posted Last updated
.
Post marked as solved
8 Replies
1.4k Views
I need sample Xcode Swift code for a macOS app that shows the code for a Scroll View.
Posted Last updated
.