Martin Carlberg and GitHub
7dc77ed609
Fixed: Make sure we handle undefined when testing for nil values ( #2862 )
2020-01-31 13:43:58 +01:00
Martin Carlberg
0efb7e67c9
Fixed: Use new fast msgSend function for some foundation classes
2014-04-10 11:03:49 +02:00
Martin Carlberg
bb58a206a8
Fixed: Removed all warnings of conflicting return and parameter types caused by the new compiler
2013-08-12 16:46:14 +02:00
Alexander Ljungberg
315e3fccf3
Formatting.
...
Refs #1959 .
2013-07-15 10:36:48 +01:00
Martin Carlberg
f52f11899a
New: Sort using descriptors handles nil and CPNull in correct way
...
This is the same way as Cocoa works.
Also added test case.
2013-07-09 13:38:13 +02:00
Alexander Ljungberg
6d1c4a9570
Fixed: - CPMutableArray removeObjectIdenticalTo did not remove all instances, was documented incorrectly.
...
Contrary to what the previous documentation said, removeObjectIdenticalTo: should remove all instances of the argument from the receiver, not just the first one.
2013-02-24 23:51:48 +00:00
Alexander Ljungberg
c4370240f8
Fixed: subclasses of CPMutableArray had broken removeObject:.
...
The `removeObject:` default provided in CPMutableArray would not work in subclasses because it relied on the class having a .length property.
2013-02-24 23:43:20 +00:00
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
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
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
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
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
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
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
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
37931f08b5
First pass at CPArray class cluster.
...
Reviewed by me.
2010-12-25 16:07:30 -08:00