Store the instance using the correct key in the thread dictionary.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17185 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
alexm 2003-07-11 00:35:21 +00:00
parent eb078bc0f9
commit 8e70ff7b10
2 changed files with 12 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2003-07-11 02:33 Alexander Malmberg <alexander@malmberg.org>
* Source/NSAssertionHandler.m: Use the correct key to store the
NSAssertionHandler in the thread dictionary, and document the
storing and the key.
2003-07-09 15:54 Alexander Malmberg <alexander@malmberg.org> 2003-07-09 15:54 Alexander Malmberg <alexander@malmberg.org>
* Source/Additions/Unicode.m (GSToUnicode, GSFromUnicode): Make sure * Source/Additions/Unicode.m (GSToUnicode, GSFromUnicode): Make sure

View file

@ -42,6 +42,11 @@
* source file, the position within that file, and the name of the * source file, the position within that file, and the name of the
* ObjC method or C function in which the assertion failed. * ObjC method or C function in which the assertion failed.
* </p> * </p>
* <p>An NSAssertionHandler instance is created on demand for each thread
* and is stored in the thread's dictionary under the key NSAssertionHandler.
* A custom NSAssertionHandler can be used by adding it to the thread
* dictionary under this key.
* </p>
* The assertion macros are: * The assertion macros are:
* NSAssert(), NSCAssert(), * NSAssert(), NSCAssert(),
* NSAssert1(), NSCAssert1(), * NSAssert1(), NSCAssert1(),
@ -54,7 +59,7 @@
@implementation NSAssertionHandler @implementation NSAssertionHandler
/* Key for thread dictionary. */ /* Key for thread dictionary. */
static NSString *dict_key = @"_NSAssertionHandler"; static NSString *dict_key = @"NSAssertionHandler";
/** /**
* Returns the assertion handler object for the current thread.<br /> * Returns the assertion handler object for the current thread.<br />