MonobjcMonobjc Documented Class Library
SaveToURLOfTypeForSaveOperationError Method (absoluteURL, typeName, saveOperation, outError)
NamespacesMonobjc.AppKitNSDocumentSaveToURLOfTypeForSaveOperationError(NSURL, NSString, NSSaveOperationType, NSError%)

Saves the contents of the document to a file or file package located by a URL, formatted to a specified type, for a particular kind of save operation, and returns YES if successful.

Original signature is '- (BOOL)saveToURL:(NSURL *)absoluteURL ofType:(NSString *)typeName forSaveOperation:(NSSaveOperationType)saveOperation error:(NSError **)outError'

Available in Mac OS X v10.4 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual bool SaveToURLOfTypeForSaveOperationError(
	NSURL absoluteURL,
	NSString typeName,
	NSSaveOperationType saveOperation,
	out NSError outError
)
Public Overridable Function SaveToURLOfTypeForSaveOperationError ( _
	absoluteURL As NSURL, _
	typeName As NSString, _
	saveOperation As NSSaveOperationType, _
	<OutAttribute> ByRef outError As NSError _
) As Boolean
public:
virtual bool SaveToURLOfTypeForSaveOperationError(
	NSURL^ absoluteURL, 
	NSString^ typeName, 
	NSSaveOperationType saveOperation, 
	[OutAttribute] NSError^% outError
)
Parameters
absoluteURL (NSURL)
The location of the file or file package to which the document contents are saved.
typeName (NSString)
The string that identifies the document type.
saveOperation (NSSaveOperationType)
The type of save operation.
outError (NSError%)
On return, If the document contents could not be saved, a pointer to an error object that encapsulates the reason they could not be saved.
Return Value
YES if the document contents were successfully saved; otherwise, NO.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)