NSDocument saving query
NSDocument saving query
- Subject: NSDocument saving query
- From: Michael McLaughlin <email@hidden>
- Date: Thu, 14 Apr 2016 14:55:58 -0400
I am creating an Objective-C document app with the latest version of Xcode.
Scenario as follows:
A user selects File/New and, after creating a new document along with its window, my IBAction for this ends with
[newDoc saveDocumentAs:self];
displaying the usual Save panel.
However, the user might Cancel. In this case, I would like to close the window and discard the new document. My problem is that saveDocumentAs returns void, not BOOL indicating success (or not).
What is the recommended way to capture a Cancel in this case? Any sample code available?
Thanks.
--
Michael McLaughlin
email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden