mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Changes from Scott Christley. See ChangeLog Mar 6 08:57:29
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2296 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
2969f845d4
commit
0f45fc53ee
2 changed files with 41 additions and 4 deletions
37
ChangeLog
37
ChangeLog
|
@ -15,6 +15,43 @@ Sat May 3 12:28:48 1997 Andrew McCallum <mccallum@jprc.com>
|
|||
Use NSBundle's pathForResource:ofType:inDirectory method properly.
|
||||
(Reported by Stevo Crvenkovski <stevoc@lotus.mpt.com.mk>.)
|
||||
|
||||
Thu Mar 6 08:57:29 1997 Scott Christley <scottc@net-community.com>
|
||||
|
||||
* src/NSString.m (-substringToIndex:): Should return
|
||||
characters upto but not including the one at index.
|
||||
(lastPathComponent, stringByDeletingLastPathComponent): Modify
|
||||
for -substringToIndex: change.
|
||||
(stringByDeletingPathExtension): Likewise.
|
||||
|
||||
Tue Mar 4 10:47:18 1997 Scott Christley <scottc@net-community.com>
|
||||
|
||||
* src/NSBundle.m: Don't look in gnustep installation library
|
||||
directory; remove previous patch.
|
||||
* src/NSCharacter.m: Create bundle with path instead of using
|
||||
main bundle.
|
||||
* src/NSString.m (-stringByAppendingPathComponent:): Don't
|
||||
even check the length; only care if we found the string at
|
||||
the very last position.
|
||||
(-stringByAppendingPathExtension:): Likewise.
|
||||
* src/include/preface.h.in: Include NSObjCRuntime so that
|
||||
NSLog() is declared.
|
||||
* src/include/NSString.h (+stringWithContentsOfFile:): Add
|
||||
missing declaration.
|
||||
|
||||
Thu Feb 27 13:46:10 1997 Scott Christley <scottc@net-community.com>
|
||||
|
||||
* configure.in: Fill out description of parameter.
|
||||
* src/Makefile.in (GNUSTEP_INSTALL_LIBDIR): Use quotes.
|
||||
* src/NSBundle.m: Add gnustep installation library directory
|
||||
to the directories searched.
|
||||
* src/NSCharacterSet.m (NSCharacterSet_PATH): Don't specify
|
||||
full path, just bundle directory.
|
||||
* src/NSRange.m (NSMakeRange): Correct prototype.
|
||||
* src/include/NSRange.h (NSMakeRange): Likewise.
|
||||
* src/NSString.m (stringByAppendingExtension:): The length
|
||||
will actually be zero if the period isn't found.
|
||||
(stringByAppendingPathComponent:): Likewise.
|
||||
|
||||
Tue Jan 21 17:09:09 CST 1997 Jeremy Bettis <Jeremy@hksys.com>
|
||||
|
||||
* src/NSGCString.m: Add -appendString:.
|
||||
|
|
|
@ -561,7 +561,7 @@ handle_printf_atsign (FILE *stream,
|
|||
|
||||
- (NSString*) substringToIndex: (unsigned int)index
|
||||
{
|
||||
return [self substringFromRange:((NSRange){0,index+1})];;
|
||||
return [self substringFromRange:((NSRange){0,index})];;
|
||||
}
|
||||
|
||||
|
||||
|
@ -1192,7 +1192,7 @@ handle_printf_atsign (FILE *stream,
|
|||
if (range.location == 0)
|
||||
substring = [NSString new];
|
||||
else
|
||||
substring = [[self substringToIndex:range.location-1]
|
||||
substring = [[self substringToIndex:range.location]
|
||||
lastPathComponent];
|
||||
}
|
||||
else
|
||||
|
@ -1266,7 +1266,7 @@ handle_printf_atsign (FILE *stream,
|
|||
range = [self rangeOfString:[self lastPathComponent]
|
||||
options:NSBackwardsSearch];
|
||||
if (range.length != 0)
|
||||
substring = [self substringToIndex:range.location-2];
|
||||
substring = [self substringToIndex:range.location-1];
|
||||
else
|
||||
substring = self;
|
||||
return substring;
|
||||
|
@ -1281,7 +1281,7 @@ handle_printf_atsign (FILE *stream,
|
|||
|
||||
range = [self rangeOfString:[self pathExtension] options:NSBackwardsSearch];
|
||||
if (range.length != 0)
|
||||
substring = [self substringToIndex:range.location-2];
|
||||
substring = [self substringToIndex:range.location-1];
|
||||
else
|
||||
substring = self;
|
||||
return substring;
|
||||
|
|
Loading…
Reference in a new issue