Make NSNumber more like OSX ... retain for copy, and return YES/NO as BOOL

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29676 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2010-02-19 19:23:03 +00:00
parent 42143bb921
commit 012fa8e513
5 changed files with 27 additions and 114 deletions

View file

@ -4,6 +4,10 @@
return (type)VALUE;\
}
#include "GSNumberTypes.h"
- (BOOL) boolValue
{
return (VALUE == 0) ? NO : YES;
}
- (const char *) objCType
{
return @encode(typeof(VALUE));