Alexander Ljungberg
bf3a152946
Whitespace.
2012-09-03 20:20:05 +01:00
Alexander Ljungberg
b28673d23d
Eliminate some debug output from jake test runs.
2012-08-24 17:26:27 +01:00
Alexander Ljungberg
46848562d0
Improve describe format of CPDictionary and CPArray to be more like literals.
...
E.g. a dictionary is expressed as @{key1: value1}, an array like @[value2, value2], a string like @"<value>".
Also don't put all child objects into quotation marks - that makes them all look like strings.
2012-08-24 17:25:37 +01:00
Alexander Ljungberg
6d4ce10150
Formatting.
2012-08-21 01:24:36 +01:00
Alexander Ljungberg
4fbd0fdc42
Unit test KVCArray setArray: behaviour.
2012-08-19 16:50:09 +01:00
Eric Wong
175c70d99e
fix a new bug in CPDecimalMakeWithString and remove some test cases
2012-08-05 08:37:44 +08:00
Eric Wong
9f1a8fa7a2
enable '.003' or '-.003' style number in CPDecimalMakeWithString function and add new test cases
2012-08-04 23:04:40 +08:00
Alexander Ljungberg
31ea0da526
CPNumberFormatter generatesDecimalNumbers support, enabled by default.
2012-08-04 13:45:45 +01:00
Alexander Ljungberg
3a2bf36359
Very basic CPNumberFormattercurrency style.
2012-08-04 13:37:42 +01:00
Alexander Ljungberg
dc0c63ccc3
Extend CPNumberFormatter CPCoding support and fix rounding default.
2012-08-04 02:31:43 +01:00
Alexander Ljungberg
a7f22a0c5a
Correct CPNumberFormatter maximumFractionalDigits default.
2012-08-04 01:09:51 +01:00
Alexander Ljungberg
b279a92e4c
CPNumberFormatter setMinimumFractionDigits: support.
2012-08-04 00:55:41 +01:00
Alexander Ljungberg
055dd7229e
Properly allow CPNumberFormatter to operate on most CPNumber types.
...
This only worked by accident before.
2012-08-04 00:48:45 +01:00
Alexander Ljungberg
bd0114aa06
Refs #1632 . Remove debug logging.
2012-07-26 13:42:01 +01:00
Alexander Ljungberg
3e218d6aec
Refs #1632 . Unit test for CPUndoManagerDidCloseUndoGroupNotification.
2012-07-26 13:32:01 +01:00
Alexander Ljungberg
b51a2e25c2
Refs #1631 . Unit test last index of index set with a single index.
2012-07-24 20:09:18 +02:00
Alexander Ljungberg
9eee7a214e
Refs #1630 . Add test.
2012-07-23 15:35:52 +02:00
Alexander Ljungberg
6d08f0d60b
Formatting.
2012-07-23 15:26:03 +02:00
Alexander Ljungberg
aab8ade15b
Refs #1629 . Fixed: aSet removeObject: for an object not a member is not an error.
2012-07-23 15:25:52 +02:00
Ilya Kulakov
985759ce91
Fix CPSet's member never checks equality of objects at Objj level.
2012-07-23 19:34:40 +07:00
Alexander Ljungberg
a78c1bf03a
Refs #1624 . Fix grouping separator support.
...
`perMillSymbol` was incorrectly used as the grouping separator.
2012-07-21 13:13:14 +01:00
Alexander Ljungberg
5724dfe21d
CPDictionary enumerateKeysAndObjectsUsingBlock:.
2012-07-17 20:48:52 +01:00
Aparajita Fishman
c4dc9c8bdb
CPDictionary key methods
...
keysOfEntriesPassingTest:
keysOfEntriesWithOptions:passingTest:
keysSortedByValueUsingComparator:
2012-07-15 09:27:04 -07:00
Alexander Ljungberg
ccb6b3b4a2
Code formatting.
2012-07-14 14:11:38 +01:00
Alexander Ljungberg
5658ea2c1e
Merge pull request #1616 from slevenbits/kvo-willchange-fix-2
...
Fix crash if an observer is set between willChange…/didChange…
2012-07-14 13:58:18 +01:00
Ilya Kulakov
3886f27acd
Fix crash if an observer is set between willChange…/didChange…
...
When you add an observer to an object first time, its class is
implicitly changed to a KVO_originalClassName (subclass of original
class). This subclass adds willChange…/didChange… methods for
observable properties.
If you send willChange… before you add an observer, it does nothing.
But if you send didChange… just after, the app will crash, because
new KVO_originalClassName nerver receives willChange…
The idea is to maintain counter of all received willChange… messages
(per key) and decrease it in didChange…
When KVO_originalClassName is created and didChange… is received
(without opening willChange… to new class), exception is not thrown
immediately, but the counter is checked first.
If it's greater than 0, then didChange… just closes
an unboserved willChange… Otherwise exception is thrown, as expected.
2012-07-14 19:32:25 +07:00
Alexander Ljungberg
9abb79d191
Merge pull request #1612 from slevenbits/cpgeometry-improvements
...
Cpgeometry improvements
2012-07-13 11:37:02 +01:00
Vladimir Shevchenko
ff074294ee
mistakes corrected
2012-07-13 03:47:34 +07:00
Vladimir Shevchenko
028965e708
mistakes corrected
2012-07-13 03:43:12 +07:00
Vladimir Shevchenko
28b48edf02
Completed aliases and tests
2012-07-13 01:52:06 +07:00
aparajita
25f51eb5cd
Merge pull request #1602 from mrcarlberg/sort_using_descriptors_with_key_path
...
Fixed sortUsingDescriptors: so it can handle sort descriptors with a key path
2012-07-12 08:19:46 -07:00
Vladimir Shevchenko
d6b9daf7ca
Fixed documentation & spaces
2012-07-12 02:47:12 +07:00
Vladimir Shevchenko
2905cd1586
Linked methods from CPGeometry to CGGeometry + added unit tests
2012-07-12 00:19:10 +07:00
Vladimir Shevchenko
a6d6fb1a1e
CPGeometry moved to Foundation
2012-07-11 16:29:30 +07:00
Aparajita Fishman
37a89a7b0a
Cleanup
2012-07-09 15:47:26 -07:00
Ilya Kulakov
6dd44687c5
Implement *passingTest methods of CPIndexSet.
2012-07-09 02:40:47 +07:00
Martin Carlberg
e265d09034
Fixed sortUsingDescriptors: so it can handle sort descriptors
...
with a key path instead of just a key.
Also added a test case for this.
2012-07-06 20:52:33 +02:00
Alexander Ljungberg
552ba68187
Refs #1599 . Fix teacher.car.year unit test message.
2012-07-06 15:53:19 +01:00
Alexander Ljungberg
cff29904d7
Refs #1599 . Format code.
2012-07-06 15:53:03 +01:00
Ilya Kulakov
4094a1f826
Fix wrong change is sent to observer when top level object is changed.
...
When you change the top level object, observer MUST receive value
for the key path of the previous top level object as old and
value for the key path of the new top level object as new.
2012-07-05 17:59:29 +07:00
Aparajita Fishman
593f3c2109
Fixed the method names
2012-07-04 17:03:53 -04:00
Aparajita Fishman
0f5a6b4e5e
Added CPArray -indexesOfObjectPassingTest methods
2012-07-04 15:41:45 -04:00
Alexander Ljungberg
e232b18b94
Merge pull request #1560 from mrcarlberg/cappuccino
...
---
I needed to sort a lot of objects and was not impressed by the speed.
Sharing my improvements...
2012-06-10 01:00:40 +01:00
Alexander Ljungberg
fcf62080d6
Re #1562 . Make native comparison more realistic.
...
This might have a small speed implication.
2012-06-10 00:59:08 +01:00
Alexander Ljungberg
58103ce0f3
Re #1562 . Also performance test selector sort.
...
It looks like issue #1560 will cause a different sorting function to be used for selectors vs descriptors so performance of both should be monitored for regressions.
2012-06-10 00:58:27 +01:00
Alexander Ljungberg
0827f584be
Re #1562 . Simplify.
2012-06-10 00:39:37 +01:00
Alexander Ljungberg
f042996e7f
Re #1562 . Only load sort text for tests which use it.
2012-06-09 23:16:52 +01:00
Alexander Ljungberg
7b307a6fb4
Re #1562 . Format code.
2012-06-09 23:08:27 +01:00
Martin Carlberg
d7ff93f7f2
SortUsingDescriptors: Using the selector in the descriptor instead of always using compare:
2012-06-08 19:48:39 +02:00
cacaodev
0483f9d714
CPArrayPerformanceTest: fixed native sort testing, added tests for random numeric array and text array
2012-06-08 18:19:37 +02:00