Martin Carlberg
458fa9d02e
Fixed a lot of small bugs found by new warning message from compiler
2013-01-18 14:24:37 +01:00
Martin Carlberg
b52217e8a0
Tried to make the import mess a little better. Fixed a lot of bugs. Changed some class names in the test cases. Looks like all the tests are being run in the same space. Has to look into this…..
2012-12-17 00:40:26 +01:00
Martin Carlberg
0280a10832
More changes now when we don't have with(self)
2012-12-16 19:20:59 +01:00
Martin Carlberg
c297e926f9
Compiler now works with jake and can compiler the whole Cappuccino framework. A lot of test cases still fail
2012-12-16 17:38:47 +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
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
Aparajita Fishman
b6adf26549
Make Alexander happy. ;-)
2012-07-05 12:26:55 -07:00
Aparajita Fishman
d0bfde1887
Annotate indexOfObject methods, use "index" instead of "idx"
2012-07-05 11:34:01 -07:00
Alexander Ljungberg
8afb67521d
Annotate indexesOfObjectsPassingTest: function signature.
2012-07-04 23:26:07 +01: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
Aparajita Fishman
5410884e03
Fixed the documentation for CPArray -indexOfObject methods
2012-06-29 09:02:35 -07:00
Alexander Ljungberg
f538cbc51d
Re #1560 . Remove obsolete function.
2012-06-10 01:18:56 +01:00
Martin Carlberg
0696b22971
Fixed formatting
2012-06-08 20:18:22 +02:00
Martin Carlberg
d7ff93f7f2
SortUsingDescriptors: Using the selector in the descriptor instead of always using compare:
2012-06-08 19:48:39 +02:00
Martin Carlberg
dc30092b60
A very fast sortUsingDescriptors:
...
I needed to sort a lot of objects and was not impressed by the speed.
Sharing my improvements...
2012-06-07 23:25:58 +02:00
Alexander Ljungberg
5e7125e310
Refs #1538 . Clean up, accidental global.
2012-05-14 21:12:31 +01:00
Alexander Ljungberg
bc370a2a5a
Merge pull request #1538 from mrcarlberg/cappuccino
...
---
Dont you hate when your logs of arrays and dictionaries display [Object object] when you have JavaScript objects in them. Now with this patch all JavaScript objects will be display with all attributes in a nice good looking way. Log CGRect, CGPoint and other JavaScript objects withour any hassle anymore. For example: console.log([myRect]);
2012-05-14 21:12:17 +01:00
Blair Duncan
6ede1ccb04
Unnecessary globals
2012-04-10 17:25:46 -04:00
Alexander Ljungberg
3a0068186a
Implement stopping support for CPArray enumerateObjectsUsingBlock:.
2012-03-23 00:34:09 +00:00
Alexander Ljungberg
2951a83e73
CPArray enumerateObjectsWithOptions:usingBlock:.
2012-03-22 17:05:59 +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
Alexander Ljungberg
7f31be7cb1
Fixed: array replaceObjectsInRange:withObjectsFromArray: always failed with a "'null' is not an object' error.
...
This was caused by the new range checks in f8404c7a97 .
2011-09-07 16:18:08 +01:00
Aparajita Fishman
8e203ec78e
Fixed range checking for insertObject:atIndex:
2011-08-08 15:14:30 -07:00
Aparajita Fishman
f8404c7a97
Added some missing range checking.
2011-08-05 14:40:13 -07:00
Alexander Ljungberg
0a9c9741e8
CPArray mutableCopy.
2011-06-02 15:09:54 -04:00
Randall Luecke
26afe7c0d8
Fix return type on sortUsingDescriptors in CPMutableArray.
2011-04-24 22:28:41 -04:00
Klaas Pieter Annema
42c60913c6
add firstObject method to CPArray
2011-03-28 13:14:25 +02:00
Alexander Ljungberg
f2c53c9f52
Documentation tweaks.
2011-01-24 14:00:15 -03:00
Francisco Ryan Tolmasky I
00915083d4
Quick fix for initWithCapacity: not working on CPMutableArray.
...
Reviewed by me.
2011-01-18 13:25:43 -08:00
Francisco Ryan Tolmasky I
9796f5d5d7
Fix CPPopUpButton menu support.
...
- Added enumerateObjectsUsingBlock: to CPArray
- Fixed a remaining case of [] being used instead of objectAtIndex: in CPMutableArray.
- Added KVO support for menu items array in menus.
- Changed CPPopUpButton to use KVO to sync up with menu instead of notifications.
- Removed extra menu encoding in CPPopUpButton.
- Removed extra mainMenu object from CPApplication.
- Use setters in CPResponder instead of direct ivar access in initWithCoder:.
Closes #298 .
Closes $1059.
Reviewed by me.
2011-01-17 01:31:15 -08:00
Francisco Ryan Tolmasky I
5fd470acea
Fix for adding a js object to a CPArray and associated tests.
...
Reviewed by me.
2011-01-12 08:41:02 -08:00
Francisco Ryan Tolmasky I
1f5ad49591
CPMutableArray fixes and tests.
...
Reviewed by me.
2011-01-11 15:27:35 -08:00
Francisco Ryan Tolmasky I
3e45c7895c
More tests and bug fixes for CPArray family.
...
Reviewed by me.
2011-01-11 12:08:00 -08:00
Francisco Ryan Tolmasky I
29301f440e
Fixed a few bugs in CPArray and added many new tests for CPArray.
...
Reviewed by me.
2011-01-11 10:12:26 -08:00
Francisco Ryan Tolmasky I
2f86c0d9d2
Slight initWithArray:shouldCopyItems: fix.
...
Reviewed by me.
2011-01-10 09:21:46 -08:00
Francisco Ryan Tolmasky I
5af66b60e1
Better -copy implementations for KVC arrays and sets.
...
Reviewed by me.
2011-01-09 03:46:29 -08:00
Francisco Ryan Tolmasky I
aa60a7b975
Use stubbed out Array methods instead of relying on them existing on the object.
...
Reviewed by me.
2011-01-06 10:28:24 -08:00
Randall Luecke
a292936d55
Extra bracket.
2011-01-04 23:01:44 -06:00
Randall Luecke
a000687a42
Fix for CPArray and _CPJavaScriptArray -copy
2011-01-04 22:59:33 -06:00
Alexander Ljungberg
be71d957e1
Fixed: indexOfObject:inSortedRange: searched 1 index too far when a range was applied.
2011-01-04 17:00:48 -03:00
Ilya Kulakov and Alexander Ljungberg
db6608571a
Refs #1071 . indexOfObject:inSortedRange:options:usingComparator is incorrectly implemented.
...
Add more tests to cover more features of the indexOfObject:inSortedRange:options:usingComparator method
2011-01-04 13:37:06 -03:00
Francisco Ryan Tolmasky I
ab6609282d
Some reorganization.
...
Reviewed by me.
2010-12-27 03:02:00 -08:00
Francisco Ryan Tolmasky I
e45ed19dc7
Fix remaining failing tests and add indexOfObject:inSortedRange:options:usingComparator:, and removed non-standard methods:
...
- indexOfObject:sortedBySelector:
- indexOfObject:sortedByFunction:
- indexOfObject:sortedByDescriptors:
- indexOfObject:sortedByFunction:context:
Reviewed by me.
2010-12-25 21:10:32 -08:00
Francisco Ryan Tolmasky I
f79c2346a5
More test fixes.
...
Reviewed by me.
2010-12-25 17:05:31 -08:00
Francisco Ryan Tolmasky I
f8ffb4abbd
Small fix and whitespace fix.
...
Reviewed by me.
2010-12-25 16:38:56 -08:00
Francisco Ryan Tolmasky I
37931f08b5
First pass at CPArray class cluster.
...
Reviewed by me.
2010-12-25 16:07:30 -08:00