Make the use of nil for a file URL path raise an invalid argument exception

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33939 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2011-10-04 05:40:29 +00:00
parent 49c91de79d
commit aae4782eb3
4 changed files with 33 additions and 4 deletions

View file

@ -96,6 +96,7 @@ GS_EXPORT NSString* const NSURLFileScheme;
/**
* Initialise as a file URL with the specified path (which must
* be a valid path on the local filesystem).<br />
* Raises NSInvalidArgumentException if aPath is nil.<br />
* Converts relative paths to absolute ones.<br />
* Appends a trailing slash to the path when necessary if it
* specifies a directory.<br />
@ -107,6 +108,7 @@ GS_EXPORT NSString* const NSURLFileScheme;
/**
* Initialise as a file URL with the specified path (which must
* be a valid path on the local filesystem).<br />
* Raises NSInvalidArgumentException if aPath is nil.<br />
* Converts relative paths to absolute ones.<br />
* Appends a trailing slash to the path when necessary if it
* specifies a directory.<br />