mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
Minor tidyup
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@15171 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
627c7abbb8
commit
4bbc3d26c1
1 changed files with 11 additions and 2 deletions
|
@ -2853,11 +2853,20 @@ static NSCharacterSet *tokenSet = nil;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to store specific information for particular types of
|
* Method to store specific information for particular types of
|
||||||
* header. This is used for non-standard parts of headers.
|
* header. This is used for non-standard parts of headers.<br />
|
||||||
|
* Setting a nil value for o will remove any existing value set
|
||||||
|
* using the k as its key.
|
||||||
*/
|
*/
|
||||||
- (void) setObject: (id)o forKey: (NSString*)k
|
- (void) setObject: (id)o forKey: (NSString*)k
|
||||||
{
|
{
|
||||||
[objects setObject: o forKey: k];
|
if (o == nil)
|
||||||
|
{
|
||||||
|
[objects removeObjectForKey: k];
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
[objects setObject: o forKey: k];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue