mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
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:
parent
242b89e10e
commit
e2031f940d
2 changed files with 18 additions and 3 deletions
|
@ -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.
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue