Creates a file wrapper from a given file-system node and adds it to the receiver, which must be a directory file wrapper.
- macOS 10.0–10.10Deprecated
file-system node from which to create the file wrapper to add to the directory.
Beginning with OS X v10.6, the preferred method of referring to files is with a
file:// URL. Instead of using this method, you can instantiate
NSFile with one of the initializers, set its
preferred property if necessary, and pass the result to
This method raises
NSInternal if the receiver is not a directory file wrapper.