As a file is being saved, returns the attributes that should be written to a file or file package located by a URL, formatted to a specified type, for a particular kind of save operation.
Original signature is '- (NSDictionary *)fileAttributesToWriteToURL:(NSURL *)absoluteURL ofType:(NSString *)typeName forSaveOperation:(NSSaveOperationType)saveOperation originalContentsURL:(NSURL *)absoluteOriginalContentsURL error:(NSError **)outError'
Available in Mac OS X v10.4 and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public virtual NSDictionary FileAttributesToWriteToURLOfTypeForSaveOperationOriginalContentsURLError( NSURL absoluteURL, NSString typeName, NSSaveOperationType saveOperation, NSURL absoluteOriginalContentsURL, out NSError outError )
Public Overridable Function FileAttributesToWriteToURLOfTypeForSaveOperationOriginalContentsURLError ( _ absoluteURL As NSURL, _ typeName As NSString, _ saveOperation As NSSaveOperationType, _ absoluteOriginalContentsURL As NSURL, _ <OutAttribute> ByRef outError As NSError _ ) As NSDictionary
public: virtual NSDictionary^ FileAttributesToWriteToURLOfTypeForSaveOperationOriginalContentsURLError( NSURL^ absoluteURL, NSString^ typeName, NSSaveOperationType saveOperation, NSURL^ absoluteOriginalContentsURL, [OutAttribute] NSError^% outError )
Parameters
- absoluteURL (NSURL)
- The location to which the document is being written.
- typeName (NSString)
- The string that identifies the document type.
- saveOperation (NSSaveOperationType)
- The type of save operation.
- absoluteOriginalContentsURL (NSURL)
- The location of the previously saved copy of the document (if not nil).
- outError (NSError%)
- On return, If the attributes could not be returned, a pointer to an error object that encapsulates the reason they could not be returned.
Return Value
A dictionary containing the attributes to be written, or nil if unsuccessful.
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)