Alexander Ljungberg
76e9725e26
Error on adding CPNotFound to an index set.
2013-01-26 01:11:33 +00:00
Alexander Ljungberg
821961fc26
Argument check CPIndexSet indexSetWithIndex:.
...
Without this check, an index set could be initialised with NaN which would later lead to an infinite loop when enumerating the index set.
This error makes the error early and explicit.
2013-01-15 16:08:17 +00:00
Aparajita Fishman
37a89a7b0a
Cleanup
2012-07-09 15:47:26 -07:00
Alexander Ljungberg
09e235eb60
Refs #1603 . Optimise slightly.
2012-07-08 21:26:47 +01:00
Ilya Kulakov
6dd44687c5
Implement *passingTest methods of CPIndexSet.
2012-07-09 02:40:47 +07:00
Alexander Ljungberg
e9ba326610
Inlineable range functions.
2012-06-16 12:31:49 +01:00
Alexander Ljungberg
0d9b49df85
Optimise CPIndexSet.
2012-03-18 00:44:02 +00:00
Alexander Ljungberg
44236795b5
CPIndexSet enumerateIndexesInRange:options:usingBlock:.
2012-03-17 18:18:08 +00:00
Alexander Ljungberg
a26bca5dbe
CPIndexSet enumerateIndexesWithOptions:usingBlock:.
2012-03-17 18:03:21 +00:00
Alexander Ljungberg
872b446695
CPIndexSet enumerateIndexesUsingBlock:.
2012-03-17 17:36:31 +00:00
Aparajita Fishman
1c2a304ee5
Assignment of function is a statement and should be semicolon terminated. Some miscellaneous linting as well.
2012-01-05 17:51:37 -10:00
Stephen Ierodiaconou
6a942630e4
Fixing spelling mistakes
2011-01-24 11:05:48 +02:00
Stephen Ierodiaconou
b70018bd80
Import fixes and lint
2010-12-26 01:34:37 +02:00
Brian Donovan and Ross Boucher
b5d0054f94
-[CPIndexSet shiftIndexesStartingAtIndex:by:] did not properly adjust count.
...
When clipping a range (i.e. some or all of it went below the lower bound) as a result of
calling shiftIndexesStartingAtIndex:by: with a negative delta, the CPIndexSet did not adjust
the index count, which caused calls to -lastIndex to fail.
This caused -[CPArrayController removeObject:] to fail when the object removed was at index 0.
2010-10-13 18:20:20 -07:00
Alexander Ljungberg
6afe22f351
Merge remote branch 'klaaspieter/fix/784-cparraycontroller-selection'
2010-08-13 14:00:27 -04:00
Francisco Ryan Tolmasky I
cea663f4eb
Fix for isEqual: not being implemented in CPIndexSet.
...
Closes #785 .
Reviewed by rossco.
2010-07-28 16:17:54 -07:00
Aparajita Fishman and Ross Boucher
8ecac8d03c
Fix and test case for issue #746
2010-07-28 16:12:02 -07:00
Klaas Pieter Annema
b9c2becd3e
implement CPIndexSet isEqual:
2010-07-27 09:09:59 +02:00
Stephen Ierodiaconou and Ross Boucher
b98f0b1427
Apply style rules to Foundation
2010-05-26 08:53:05 -07:00
Ross Boucher
a08d4c6a06
Whitespace error.
2010-03-12 18:55:44 -08:00
aburkhalter and Ross Boucher
e1e344dad1
Missing semi-colon.
2010-03-12 18:54:05 -08:00
aburkhalter and Ross Boucher
b9427f84ae
Fixes testShiftIndexesStartingAtIndex. Upward shifting no longer throws.
2010-03-12 18:53:58 -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
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
3b761ec55e
Fixed a bug in the new CPIndexSet when adding indexes to the back of the set. Also added a test to handle this case. Also moved Table visual tests into Tests/ folder.
...
Reviewed by me.
2009-08-22 02:51:37 -07:00
Francisco Ryan Tolmasky I
ddc9334af3
Merge branch 'master' into tableview
...
Conflicts:
AppKit/CPTableColumn.j
AppKit/CPTableView.j
2009-08-10 15:09:10 -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
ab2cb38362
Fixed incorrect variable in CPIndexSet.
...
Reviewed by me.
2009-06-27 23:43:49 -07:00
Francisco Ryan Tolmasky I
1fecae3dc0
Further improvements to tableview, and reimplemented getIndexes: for CPIndexSet to match the new architecture.
...
Reviewed by me.
2009-06-23 10:51:16 -07:00
Francisco Ryan Tolmasky I
bd07054a1b
Fix for removeIndex in CPIndexSet and added tests for CPIndexSet.
...
Reviewed by me.
2009-06-21 20:25:29 -07:00
Francisco Ryan Tolmasky I
f4171f9afa
Made all initializers call designated initializers and fixed numerous spacing issues.
...
Reviewed by me.
2009-06-21 13:59:58 -07:00
Francisco Ryan Tolmasky I
d165761740
Began work on rewriting CPIndexSet.
...
Reviewed by me.
2009-06-21 03:50:06 -07:00
Ross Boucher
f46aa870a7
adding briefs and unifying class header structure
...
Conflicts:
Foundation/CPArray.j
Foundation/CPAttributedString.j
Foundation/CPBundle.j
Foundation/CPCountedSet.j
Foundation/CPIndexSet.j
Foundation/CPJSONPConnection.j
2009-05-30 13:49:10 -07:00
Ross Boucher
8fb0abd3d6
Added briefs to all Foundation and made some cleanups to docs
...
Conflicts:
Foundation/CPArray.j
Foundation/CPBundle.j
Foundation/CPCountedSet.j
Foundation/CPIndexSet.j
Foundation/CPTimer.j
Foundation/CPURLConnection.j
2009-05-30 13:45:26 -07:00
Ross Boucher
f6bd4ddd96
Added a new group Cocoa Compatability for the empty compatability
...
classes like CPMutableArray
Conflicts:
Foundation/CPAttributedString.j
Foundation/CPSet.j
2009-05-30 13:42:57 -07:00
Ross Boucher
850125b8ab
Add documentation groups
2009-05-18 15:43:36 -07:00
Francisco Ryan Tolmasky I
5144a5a579
Added @accessor support, @import, and fixed spacing bug with @selector.
...
Reviewed by ross.
2008-10-26 00:48:49 -07:00
Ross Boucher
f228934e54
Initial conversion to Doxygen style comments.
2008-10-12 15:57:01 -07:00
Ross Boucher
c943eefec3
Fix typo and null pointer.
2008-09-27 12:37:03 -07:00
Ross Boucher
a40fbd7961
Add the first draft of documentation inline.
2008-09-10 15:11:37 -07:00
Francisco Ryan Tolmasky I
a97bb72800
Initial commit.
...
Reviewed by francisco, ross and tom.
2008-09-04 03:52:20 -07:00