Stephen Ierodiaconou
76b5682234
Missing imports in CPSet+KVO
2010-12-26 10:29:46 +02: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
Stephen Ierodiaconou
4aa4f1a62a
Some more missing imports
2010-12-26 01:47:26 +02:00
Stephen Ierodiaconou
7ae14e9eb5
CPCharacterSet lint and fixes
2010-12-26 01:34:43 +02:00
Stephen Ierodiaconou
bfe03a8874
CPJSONPConnection Missing imports and self check
2010-12-26 01:34:43 +02:00
Stephen Ierodiaconou
66b6b44f86
CPPredicate lint, import fixes, and some bug fixes
2010-12-26 01:34:43 +02:00
Stephen Ierodiaconou
b70018bd80
Import fixes and lint
2010-12-26 01:34:37 +02:00
Francisco Ryan Tolmasky I
9b75e37e1f
A number of set and array fixes and added tests for unordered accessor pattern in key value coding.
...
Reviewed by me.
2010-12-25 02:18:02 -08:00
Francisco Ryan Tolmasky I
232f1d008d
Added better implementation of valueForKey for indexed accessor pattern and tests for it.
...
Reviewed by me.
2010-12-25 01:47:18 -08:00
Francisco Ryan Tolmasky I
3947bd65f2
Reimplementation of CPSet as a class-cluster, and better set support for valueForKey:
...
1. CPSet and CPMutableSet are now abstract super classes that create appropriate concrete subclasses behind the scenes.
2. CPSet subclassers need only implement -count, -member:, and -objectEnumerator.
3. CPMutableSet subclassers need only implement -count, -member:, -objectEnumerator:, -addObject:, and removeObject:.
4. Added more CPSet tests.
5. Added _CPKeyValueCodingSet which subclasses CPSet for set returns in valueForKey:.
Reviewed by me.
2010-12-25 01:01:19 -08:00
Francisco Ryan Tolmasky I
1d39299a7d
Fix for missing imports and incorrect variable.
...
Reviewed by me.
2010-12-24 23:36:53 -08:00
Francisco Ryan Tolmasky I
da1389b0b4
Forgot one last typo.
...
Reviewed by me.
2010-12-24 16:46:17 -08:00
Francisco Ryan Tolmasky I
818c7dac3d
Fix for set accessor methods.
...
Reveiwed by me.
2010-12-24 16:29:40 -08:00
Francisco Ryan Tolmasky I
15b05304cc
Cleanup setValue:forKey:.
...
Reviewed by me.
2010-12-24 13:20:13 -08:00
Francisco Ryan Tolmasky I
e33c7f6be4
Initial support for valueForKey: supporting sets and arrays.
...
Reviewed by me.
2010-12-24 12:42:28 -08:00
Francisco Ryan Tolmasky I
d23bf7b927
Some KVC cleanup:
...
1. Added class_getInstanceVariable to runtime.
2. Changed KVC to rely on class-defined variables vs prototypal ones.
3. Modified KVO code to use public APIs.
Reviewed by me.
2010-12-23 23:46:23 -08:00
Francisco Ryan Tolmasky I
83058b01d3
Remove AppKit imports from Foundation.
...
Bugs filed to deal with associated technologies: #1051 and #1052
Reviewed by me.
2010-12-20 11:14:55 -08:00
Francisco Ryan Tolmasky I
3c8619db5d
Merge branch 'fixes' of https://github.com/stevegeek/cappuccino into stevegeek-fixes
...
Conflicts:
Foundation/CPValueTransformer.j
2010-12-20 11:13:54 -08:00
cncolder
5a6e266c8d
nib2cib binding with buildin transformers support.
2010-12-18 15:02:25 +08:00
Stephen Ierodiaconou
4f3146dc7b
Remove unnecessary defines of MIN/MAX/ABS
2010-12-16 20:20:58 +02:00
Francisco Ryan Tolmasky I
4372edb7c4
Fix for remaining reference to objj_standardize_path.
...
Closes #1040 .
Reviewed by me.
2010-12-16 09:51:44 -08:00
Stephen Ierodiaconou
d105388d82
Move CPOrderedX to CPObjRuntime only instead of duplicated in CPSortDescriptor
2010-12-16 19:16:38 +02:00
Stephen Ierodiaconou
fd812f25a5
Imports additions
...
Import fixes and clean up
Missing import
Missing imports
Missing import
Remove uncessary comments
2010-12-16 19:16:33 +02:00
Stephen Ierodiaconou
9f5904eaf2
Alphabetical order
2010-12-16 17:34:02 +02:00
Stephen Ierodiaconou
d246b19750
Some linting and deprecation error and ivar '_' addition
2010-12-16 17:18:11 +02:00
Alexander Ljungberg
8edee4e755
Fix accidental globals, cleanup.
2010-12-15 16:02:50 +01:00
Alexander Ljungberg
251ba407be
Implement CPURL isEqualToURL:.
2010-12-15 11:08:28 +01:00
Alexander Ljungberg
c65726fb12
Fixed: CPURL isEqual threw an exception if the argument was not a CPURL.
2010-12-14 23:49:24 +01:00
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
Randall Luecke
c80116e90d
Removed leftover from versioning fixes
2010-12-11 01:01:56 -05:00
Francisco Ryan Tolmasky I
f667c39ade
Further versioning fix.
...
Reviewed by me.
2010-12-10 09:04:13 -08:00
Randall Luecke
3a716c08f8
CPObject -version should be static and zero by default.
2010-12-10 10:01:33 -05:00
Francisco Ryan Tolmasky I
d69f46f7ee
More capp_linting.
...
Reviewed by me.
2010-12-09 13:45:29 -08: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
Daniel Stolzenberg
29ed8f3116
fixed issues with "CPKeyValueObservingOptionPrior" and "CPKeyValueObservingOptionOld" on dependent keys caused by improper wrapped observation messages
2010-12-09 14:56:55 +01:00
Ross Boucher
df7c8bf508
Remove unwanted global.
2010-12-08 16:11:25 -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
Derek Hammer
d4d831b9ac
Fixing a bug caused by the function inline.
2010-12-01 20:12:12 -08:00
Klaas Pieter Annema
a51672cc82
use charAt in CPDecimal, IE doesn't support []
2010-11-30 16:05:32 +01:00
Klaas Pieter Annema
34339fbcd9
several bindings / KVC fixes
...
- setValue:forKeyPath will now get call setValue:forKeyPath again on the value of the first part of the key path
- override valueForKeyPath: and valueForKey: in CPObjectController's CPControllerSelectionProxy to return controller markers when appropriate
- override setValue:forKeyPath: and setValue:forKey: in CPObjectController's CPControllerSelectionProxy to bypass possible controller markers
This commit also removes previous hacks for compound paths and adds test cases for the errors. All this is related to issue #967 .
2010-11-23 14:18:22 +01:00
Klaas Pieter Annema
535d6c9dc5
make setValue:forKey: handle controller markers
2010-11-23 12:15:53 +01:00
Klaas Pieter Annema
aeb3873f3c
fix valueForKeyPath: attempting to call valueForKey: on controller markers
2010-11-23 11:56:46 +01:00
Alexander Ljungberg
381a6a999b
Fixed a bad var statement in CPDecimal. Cleanup.
2010-11-17 21:58:58 -03:00
Francisco Ryan Tolmasky I
bd15d2f331
Fix for [CPUndoManager removeAllActions] not clearing the current groupings as well.
...
Closes #1002 .
Reviewed by me.
2010-11-17 12:21:09 -08:00
Francisco Ryan Tolmasky I
9179a31a93
Style fixes.
...
Reviewed by me.
2010-11-13 12:41:31 -08:00