Writes the contents of the array to the location specified by a given URL.
Original signature is '- (BOOL)writeToURL:(NSURL *)aURL atomically:(BOOL)flag'
Available in Mac OS X v10.0 and later.
Declaration Syntax
Parameters
- aURL (NSURL)
- The location at which to write the array.
- flag (Boolean)
- If YES, the array is written to an auxiliary location, and then the auxiliary location is renamed to aURL. If NO, the array is written directly to aURL. The YES option guarantees that aURL, if it exists at all, won’t be corrupted even if the system should crash during writing.
Return Value
YES if the location is written successfully, 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)