Minor comptibility fixes and documentation

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17972 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2003-10-25 05:54:39 +00:00
parent 242b89e10e
commit e2031f940d
2 changed files with 18 additions and 3 deletions

View file

@ -1,3 +1,9 @@
Sat Oct 25 06:54:00 2003 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSCalendarDate.m: ([setCalendarFormat:]),([setTimeZone:])
make nil arguments set default values for MacOS-X compatibility.
Document this.
2003-10-24 Adam Fedor <fedor@gnu.org>
* configure.ac: Try to use libffi if ffcall not found.

View file

@ -1918,19 +1918,28 @@ static inline int getDigits(const char *from, char *to, int limit)
/**
* Sets the format string associated with the receiver.<br />
* Providing a nil argument sets the default calendar format.<br />
* See -descriptionWithCalendarFormat:locale: for details.
*/
- (void) setCalendarFormat: (NSString *)format
{
RELEASE(_calendar_format);
_calendar_format = [format copyWithZone: [self zone]];
if (format == nil)
{
format = cformat;
}
ASSIGNCOPY(_calendar_format, format);
}
/**
* Sets the time zone associated with the receiver.
* Sets the time zone associated with the receiver.<br />
* Providing a nil argument sets the local time zone.
*/
- (void) setTimeZone: (NSTimeZone *)aTimeZone
{
if (aTimeZone == nil)
{
aTimeZone = localTZ;
}
ASSIGN(_time_zone, aTimeZone);
}