mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
Fix documentatiion errors.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@24897 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e7e7a54ed8
commit
ec661068c7
2 changed files with 17 additions and 8 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2007-03-19 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
|
* Source/NSDictionary.m: Correct errors in documentation about keys
|
||||||
|
being retained when they are in fact copied.
|
||||||
|
|
||||||
2007-03-17 Adam Fedor <fedor@gnu.org>
|
2007-03-17 Adam Fedor <fedor@gnu.org>
|
||||||
|
|
||||||
* config/config.trampoline.c: Check for proper CPU macro for Darwin
|
* config/config.trampoline.c: Check for proper CPU macro for Darwin
|
||||||
|
|
|
@ -87,10 +87,11 @@ static SEL appSel;
|
||||||
* retrieve multiple entries simultaneously, obtain sorted contents, and
|
* retrieve multiple entries simultaneously, obtain sorted contents, and
|
||||||
* read/write from/to a serialized representation.</p>
|
* read/write from/to a serialized representation.</p>
|
||||||
*
|
*
|
||||||
* <p>Both keys and values are retained by the implementation, and released
|
* <p>The keys are copied and values are retained by the implementation,
|
||||||
* when either their entry is dropped or the entire dictionary is deallocated.
|
* and both are released when either their entry is dropped or the entire
|
||||||
* This differs from the implementation on OS X, where keys are copied instead
|
* dictionary is deallocated.<br />
|
||||||
* of being retained and must therefore implement the [(NSCopying)] protocol.
|
* As in the OS X implementation, keys must therefore implement the
|
||||||
|
* [(NSCopying)] protocol.
|
||||||
* </p>
|
* </p>
|
||||||
*
|
*
|
||||||
* <p>Objects of this class are immutable. For a mutable version, use the
|
* <p>Objects of this class are immutable. For a mutable version, use the
|
||||||
|
@ -507,7 +508,10 @@ static SEL appSel;
|
||||||
/**
|
/**
|
||||||
* Initialise dictionary with the keys and values of otherDictionary.
|
* Initialise dictionary with the keys and values of otherDictionary.
|
||||||
* If the shouldCopy flag is YES then the values are copied into the
|
* If the shouldCopy flag is YES then the values are copied into the
|
||||||
* newly initialised dictionary, otherwise they are simply retained.
|
* newly initialised dictionary, otherwise they are simply retained,
|
||||||
|
* on the assumption that it is safe to retain the keys from another
|
||||||
|
* dictionary since that other dictionary mwill have copied the keys
|
||||||
|
* originally to ensure that they are immutable.
|
||||||
*/
|
*/
|
||||||
- (id) initWithDictionary: (NSDictionary*)other
|
- (id) initWithDictionary: (NSDictionary*)other
|
||||||
copyItems: (BOOL)shouldCopy
|
copyItems: (BOOL)shouldCopy
|
||||||
|
@ -1155,9 +1159,9 @@ compareIt(id o1, id o2, void* context)
|
||||||
/**
|
/**
|
||||||
* Adds entry for aKey, mapping to anObject. If either is nil, an exception
|
* Adds entry for aKey, mapping to anObject. If either is nil, an exception
|
||||||
* is raised. If aKey already in dictionary, the value it maps to is
|
* is raised. If aKey already in dictionary, the value it maps to is
|
||||||
* silently replaced. aKey and anObject are both retained. (This differs
|
* silently replaced. The value anObject is retained, but aKey is copied
|
||||||
* from OS X, where the key is copied and must therefore implement the
|
* (because a dictionary key must be immutable) and must therefore implement
|
||||||
* [(NSCopying)] protocol.)
|
* the [(NSCopying)] protocol.)
|
||||||
*/
|
*/
|
||||||
- (void) setObject: anObject forKey: (id)aKey
|
- (void) setObject: anObject forKey: (id)aKey
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue