improve documentation

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33221 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2011-06-01 14:45:52 +00:00
parent 277fd71b21
commit 20cde83f84
2 changed files with 21 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2011-06-01 Richard Frith-Macdonald <rfm@gnu.org>
* Headers/Foundation/NSString.h: Add explicit warnings about OSX
compatible modifications to values returned by path methods.
2011-05-31 Niels Grewe <niels.grewe@halbordnung.de>
* Source/NSCallBacks.h: Adjust callback prototypes to use

View file

@ -550,6 +550,10 @@ typedef NSUInteger NSStringEncodingConversionOptions;
* @"/" with @"/file" produces @"/file"
* @"path with @"C:/file" produces @"path/file"
* </example>
* NB. Do not use this method to modify strings other than filesystem
* paths as the behavior in such cases is undefined ... for instance
* the string may have repeated slashes or slash-dot-slash sequences
* removed.
*/
- (NSString*) stringByAppendingPathComponent: (NSString*)aString;
@ -571,6 +575,10 @@ typedef NSUInteger NSStringEncodingConversionOptions;
* @"/" with @"app" produces @"/" (no file name to append to)
* @"" with @"app" produces @"" (no file name to append to)
* </example>
* NB. Do not use this method to modify strings other than filesystem
* paths as the behavior in such cases is undefined ... for instance
* the string may have repeated slashes or slash-dot-slash sequences
* removed.
*/
- (NSString*) stringByAppendingPathExtension: (NSString*)aString;
@ -593,6 +601,10 @@ typedef NSUInteger NSStringEncodingConversionOptions;
* @"//host/share/" produces @"//host/share/" (a UNC path)
* @"//path/file" produces @"//path" (an absolute Unix path)
* </example>
* NB. Do not use this method to modify strings other than filesystem
* paths as the behavior in such cases is undefined ... for instance
* the string may have repeated slashes or slash-dot-slash sequences
* removed.
*/
- (NSString*) stringByDeletingLastPathComponent;
@ -613,6 +625,10 @@ typedef NSUInteger NSStringEncodingConversionOptions;
* @"/.ext" produces @"/.ext" (there is no file to strip from)
* @".ext" produces @".ext" (there is no file to strip from)
* </example>
* NB. Do not use this method to modify strings other than filesystem
* paths as the behavior in such cases is undefined ... for instance
* the string may have repeated slashes or slash-dot-slash sequences
* removed.
*/
- (NSString*) stringByDeletingPathExtension;