Alexander Ljungberg
8ef7f07195
Fixed: CPArrayController's addObject and CPArray's insertObject:inArraySortedByDescriptors:.
...
CPArray insertObject:inArraySortedByDescriptors: now quickly inserts objects at the end of the array if no sort descriptors are specified.
CPArrayController initialises its sort descriptors to an empty array.
Fixed: array controller's addObject added objects to the arranged objects array in a different order than in the content array if no sort descriptor was set.
2010-12-14 23:33:14 +01:00
Alexander Ljungberg
b381fe6c27
Cleanup.
2010-12-14 12:36:37 +01:00
Ross Boucher
ac6ccc3257
Merge branch 'master' of https://github.com/dasto/cappuccino into dasto-master
...
Conflicts:
Tests/Foundation/CPKeyValueCodingTest.j
2010-12-09 12:59:11 -08:00
Ross Boucher
1e2fdc3e1b
Remove tabs; Update some of the toll free bridging code.
2010-12-08 15:44:28 -08:00
Ross Boucher
a767d2199d
Merge branch 'tollfreefix' of https://github.com/hammerdr/cappuccino into hammerdr-tollfreefix
2010-12-08 13:35:22 -08:00
Daniel Stolzenberg
24fbecb2e6
Merge branch 'master' of git://github.com/280north/cappuccino
2010-10-28 09:20:52 +02:00
Alexander Ljungberg
a80732f13a
Whitespace and style cleanup.
2010-10-27 20:44:55 -03:00
Daniel Stolzenberg
ed4a264108
removed duplicated (and buggy) implementations of "valueForKey:" and "setValue:forKey:" in CPArray.j
2010-10-26 12:24:20 +02:00
Ross Boucher
32a0e950fe
Allow comparators to return any value > 1 to indicate CPOrderedDescending.
2010-09-28 16:46:39 +05:30
Derek Hammer
f85ab24993
Finishing the rest to make them inherit properties of superclasses.
2010-09-06 14:02:52 -05:00
Derek Hammer
a09878dcb4
Adding self checks in toll free bridged objects so that they are subclassable.
2010-09-06 12:07:50 -05:00
Tom Robinson
4eaf560ee6
Fixes two bugs in compareObjectsUsingDescriptors causing test to fail: extra semi-colon after while() and uninitized "result" variable.
...
The former masked the latter when a single sort descriptor was used.
2010-08-13 15:34:28 -07:00
Randall Luecke
dd9c085ae3
Fix for new sort being unstable with a huge thanks to Shon Frazier. Reviewed by Me and Alexander Ljungberg.
2010-08-11 22:33:14 -05:00
cacaodev and Randall Luecke
b7d1dfa75f
CPArray sorting: improve performance by 40% (JSC) replacing native js sort() with the merge-sort algorithm.
...
Test with ojunit CPArrayPerformance.j
2010-08-10 18:16:03 -05:00
Aparajita Fishman and Ross Boucher
3eea14abe4
For the methods that don't have context: in their signature, the predicate will receive undefined in the context parameter instead of nil.
2010-07-29 14:08:04 -07:00
Aparajita Fishman and Ross Boucher
cb7f60aba8
Added -indexOfObjectPassingTest: and related methods
2010-07-28 15:57:47 -07:00
Ross Boucher
b4dbe422ff
Revert to addObject if there are no sort descriptors in insert...sortedby.
...
Closes #764 .
2010-07-28 15:48:25 -07:00
Scott Kyle and Randall Luecke
1899250a53
Semicolons are nice...
2010-06-10 16:42:28 -05:00
Alexander Ljungberg
5463e5ca55
Fixed: CPArray insertObject:inArraySortedByDescriptors: did not return the index into which the object was inserted. This would have broken CPArrayController's addObject code.
2010-05-26 19:36:26 -04:00
Alexander Ljungberg
ed2c65dd6f
Merge branch 'master' of git://github.com/280north/cappuccino into bindings-merge
...
Conflicts:
AppKit/CPTableView.j
Foundation/CPArray+KVO.j
Foundation/CPArray.j
2010-05-26 19:05:04 -04:00
Stephen Ierodiaconou and Ross Boucher
b98f0b1427
Apply style rules to Foundation
2010-05-26 08:53:05 -07:00
Alexander Ljungberg and Ross Boucher
791e65c88b
Improved CPArray sortUsingDescriptors performance by about 3% by pulling the descriptor count out of the sort function.
2010-05-15 12:32:19 -07:00
Ross Boucher
2453e403ef
Make nil a completely valid object in a CPArray.
...
Closes #630 .
2010-04-29 12:04:44 -07:00
Stephen Ierodiaconou and Ross Boucher
09e52d82bf
Code style clean up, as per style guide
2010-04-24 15:06:12 -07:00
Stephen Ierodiaconou and Ross Boucher
7577cf8645
Fix error in initWithArray:copyItems:
2010-04-23 16:42:55 -07:00
Klaas Pieter Annema
6f0ca9d94c
Merge branch 'master' into bindings
...
Conflicts:
AppKit/CPTableView.j
AppKit/_CPCornerView.j
Foundation/CPArray.j
Foundation/CPKeyValueCoding.j
Foundation/CPKeyValueObserving.j
2010-04-15 10:57:46 +02:00
Ross Boucher
b3ef31ad05
Fixed: [CPArray isEqualToArray:nil] threw an exception instead of returning NO.
...
Conflicts:
Foundation/CPArray.j
Tests/Foundation/CPArrayTest.j
2010-04-09 14:51:46 -07:00
Scott Kyle and Ross Boucher
0b5db9c4bd
Fix CPArray initWithArray: copyItems: to actually work
2010-03-03 20:36:49 -08:00
Francisco Ryan Tolmasky I
7433c38d92
Pulled @each out into a separate feature branch, so as to not conflict with the 0.8 work: http://github.com/280north/cappuccino/tree/@each .
...
Reviewed by me.
2010-02-21 12:31:13 -08:00
Francisco Ryan Tolmasky I
81110ddba7
Further performance improvements.
...
Reviewed by me.
2010-02-16 02:41:15 -08:00
Francisco Ryan Tolmasky I
64fd9f615c
Additional performance improvements to CPFastEnumeration.
...
Reviewed by me.
2010-02-16 02:04:31 -08:00
Francisco Ryan Tolmasky I
8929199082
Add CPFastEnumeration support for CPEnumerator.
...
Reviewed by me.
2010-02-15 22:48:28 -08:00
Francisco Ryan Tolmasky I
db949728dd
Add CPFastEnumeration support to CPSet and CPNull.
...
Reviewed by me.
2010-02-15 22:44:52 -08:00
Francisco Ryan Tolmasky I
92d28e468e
Autogenerate the index parameter for Fast Enumeration, and add Fast Enumeration support to CPIndexSet.
...
Reviewed by me.
2010-02-15 22:34:50 -08:00
Francisco Ryan Tolmasky I
f95c3ca46a
Adds fast enumeration to Cappuccino. Currently support for Arrays, dictionaries, single objects, and nil.
...
Closes #472 .
Reviewed by me.
2010-02-15 21:46:50 -08:00
Francisco Ryan Tolmasky I
bc53288fca
Fix for failing CPAttributedString test.
...
Reviewed by me.
2010-02-13 16:14:18 -08:00
Francisco Ryan Tolmasky I
3a35ab449b
Fixed failing KVO tests.
...
Reviewed by me.
2010-02-12 13:46:26 -08:00
Francisco Ryan Tolmasky I
5e14e65eb0
Fix for CPArray test not passing.
...
Reviewed by me.
2010-01-07 16:36:25 -08:00
Francisco Ryan Tolmasky I
b7d747ee17
Fixed a bug in CPTreeNode's KVO implementation.
...
Reviewed by me.
2010-01-05 15:49:16 -08:00
Francisco Ryan Tolmasky I
75fdfb5a0b
Improved observable arrays to support indexOfObject:, indexOfObjectIdenticalTo:, and removeObjectIdenticalTo:.
...
Reviewed by me.
2009-12-24 18:45:20 -08:00
Francisco Ryan Tolmasky I
4fbc140551
Better descriptions for CPArray.
...
Reviewed by me.
2009-12-07 18:54:01 -08:00
Ross Boucher
e6d86eaa9b
Throw an exception for -1 indexes in CPArray objectAtIndex:
2009-12-02 19:19:18 -08:00
Francisco Ryan Tolmasky I
3dbddcf186
Added makeObjectsPerformSelector:withObjects:.
...
Reviewed by me.
2009-10-30 18:02:33 -07:00
Ross Boucher
3635d0ec26
Bindings Checkpoint.
2009-09-21 13:27:50 -07:00
Ross Boucher
417b5c8b97
Merge branch 'master' into bindings
2009-09-20 18:14:17 -07:00
lowell vizon and Francisco Ryan Tolmasky I
377f331b47
Documentation Edits: Replaced <code> and <pre> tags with \c; this allows monospaced text to be displayed with formatted text without needing a new line. See AppKit/CPView after generating documentation for examples. Also added - and + signs to the above changes when referring to either an -instanceMethod or a +classMethod. --lowell@cocoastep
...
Signed-off-by: Francisco Ryan Tolmasky I <francisco@280north.com >
2009-08-08 03:50:50 +08:00
Francisco Ryan Tolmasky I
4ad2c2221f
Merge branch 'master' into bindings
...
Conflicts:
AppKit/CPControl.j
AppKit/CPSlider.j
Foundation/CPArray+KVO.j
2009-07-22 16:41:58 -07:00
Francisco Ryan Tolmasky I
a5a43de26e
Fix for objectAtIndex: throwing out of range exceptions.
...
Closes #105 .
Reviewed by me.
2009-07-08 11:52:47 -07:00
Ross Boucher
adde315e2d
Fix a bug in [CPArray indexOfObject:sortedByDesciptors:], add a matching test.
2009-06-21 16:16:45 -07:00
Francisco Ryan Tolmasky I
c7823a92f8
Fix for -description in CPArray containing null or undefined values.
...
Reviewed by me.
2009-06-02 21:14:22 -07:00