Files
cappuccino/Foundation
Udo Schneider df2be926a5 Fixed: Return a Number from CPNumber>>numberWithBool:
The Cocoa signature for this method
	+ (NSNumber *)numberWithBool:(BOOL)value
implies that a number is being returned. In Cappuccino a Boolean is returned.

This leads to some problems e.g. in
addObserver:forKeyPath:options:context: with CPKeyValueObservingOptionPrior
and observeValueForKeyPath:ofObject:change:context: with CPKeyValueObservingOptionPrior.

Setting CPKeyValueObservingOptionPrior leads to CPKeyValueChangeNotificationIsPriorKey being set to 1 (which should be equal to [NSNumber numberWithBool:YES] as documented in https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Protocols/NSKeyValueObserving_Protocol/Reference/Reference.html. The actual value though is true as [CPNumber numberWithBool:YES] does not return a number but a boolean. This commit fixes this issue.
2013-10-24 19:20:45 +02:00
..
2013-07-15 10:36:48 +01:00
2013-05-16 15:02:45 -04:00
2012-05-13 14:26:19 +01:00
2010-12-26 01:34:37 +02:00
2013-02-02 11:14:45 +00:00
2010-12-26 01:34:37 +02:00
2013-01-20 19:10:41 +00:00
2011-05-04 19:07:06 +02:00
2010-12-26 01:34:37 +02:00
2010-12-26 01:34:37 +02:00
2011-11-23 00:28:27 +00:00
2010-12-26 01:34:37 +02:00
2010-12-26 01:34:37 +02:00
2013-01-23 15:45:08 +07:00
2013-07-15 10:36:48 +01:00
2013-07-26 02:08:14 -04:00
2013-05-16 15:02:45 -04:00
2013-03-07 22:18:59 -05:00
2010-12-16 19:16:33 +02:00
2010-12-16 19:16:33 +02:00
2008-09-04 03:52:20 -07:00
2012-07-13 01:28:38 +01:00