Ivar underscore prefixes added and some tidying done.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4902 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 1999-09-16 07:21:34 +00:00
parent 6a01c2a85d
commit a2737c2cf5
69 changed files with 2340 additions and 2203 deletions

View file

@ -32,7 +32,7 @@
- (BOOL) allowsNaturalLanguage
{
return allowsNaturalLanguage;
return _allowsNaturalLanguage;
}
- (NSAttributedString*) attributedStringForObjectValue: (id)anObject
@ -45,18 +45,18 @@
{
NSDateFormatter *other = (id)NSCopyObject(self, 0, zone);
RETAIN(other->dateFormat);
RETAIN(other->_dateFormat);
return other;
}
- (NSString*) dateFormat
{
return dateFormat;
return _dateFormat;
}
- (void) dealloc
{
RELEASE(dateFormat);
RELEASE(_dateFormat);
[super dealloc];
}
@ -67,7 +67,7 @@
- (void) encodeWithCoder: (NSCoder*)aCoder
{
[aCoder encodeValuesOfObjCTypes: "@C", &dateFormat, &allowsNaturalLanguage];
[aCoder encodeValuesOfObjCTypes: "@C", &_dateFormat, &_allowsNaturalLanguage];
}
- (BOOL) getObjectValue: (id*)anObject
@ -76,10 +76,10 @@
{
NSCalendarDate *d;
d = [NSCalendarDate dateWithString: string calendarFormat: dateFormat];
d = [NSCalendarDate dateWithString: string calendarFormat: _dateFormat];
if (d == nil)
{
if (allowsNaturalLanguage)
if (_allowsNaturalLanguage)
{
d = [NSCalendarDate dateWithNaturalLanguageString: string];
}
@ -95,15 +95,15 @@
- (id) initWithCoder: (NSCoder*)aCoder
{
[aCoder decodeValuesOfObjCTypes: "@C", &dateFormat, &allowsNaturalLanguage];
[aCoder decodeValuesOfObjCTypes: "@C", &_dateFormat, &_allowsNaturalLanguage];
return self;
}
- (id) initWithDateFormat: (NSString *)format
allowNaturalLanguage: (BOOL)flag
{
dateFormat = [format copy];
allowsNaturalLanguage = flag;
_dateFormat = [format copy];
_allowsNaturalLanguage = flag;
return self;
}
@ -122,7 +122,7 @@
{
return nil;
}
return [anObject descriptionWithCalendarFormat: dateFormat
return [anObject descriptionWithCalendarFormat: _dateFormat
timeZone: [NSTimeZone defaultTimeZone]
locale: nil];
}