Saves all the changes made since the last save.
Original signature is '- (BOOL)saveAndReturnError:(NSError **)error'
Available in Mac OS X v10.5 and later.

C# | Visual Basic | Visual C++ |
Public Overridable Function SaveAndReturnError ( _ <OutAttribute> ByRef error As NSError _ ) As Boolean
public: virtual bool SaveAndReturnError( [OutAttribute] NSError^% error )

- error (NSError%)
- A pointer to an error object that is set to an NSError instance if an error occurs.

YES if successful or there were no changes; otherwise, NO.

- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)