Aparajita Fishman
36bfc7c675
Fixed decode methods to return the correct defaults, removed unnecessary containsValueForKey and || with defaults
2012-04-24 10:15:19 +02:00
Alexander Ljungberg
d9640aa205
Merge branch 'master' of github.com:cappuccino/cappuccino
2012-04-19 22:44:06 +01:00
Alexander Ljungberg
469414cb35
Fixed: a CPURLRequest created without using the designated initialiser wouldn't work.
...
Now `init` calls the designated initialiser like in Cocoa.
2012-04-19 22:43:45 +01:00
aparajita
f96c113065
Merge pull request #1509 from cacaodev/CPData-bytes-base64
...
CFData: completed bytes(), base64() and adds CPData +dataWithBytes and +dataWithBase64:
2012-04-17 10:44:53 -07:00
cacaodev
7fe576163d
CFData: Adds lazy getters bytes(), base64().
...
CPData: Adds +dataWithBytes and +dataWithBase64:
Tests.
2012-04-17 19:08:29 +02:00
Alexander Ljungberg
314be1ec11
Merge branch 'master' of github.com:cappuccino/cappuccino
2012-04-17 15:28:11 +01:00
Alexander Ljungberg
0d810e64b7
Stub out CPDateFormatter and nib2cib support.
2012-04-17 15:27:47 +01:00
Aparajita Fishman
5fed81e1dc
CFURL/CPURL fixes/enhancements
...
- Fixed bizarre bug where local variable path was being set as attribute of object in CPURL -pathComponents.
- Added CPURL -URLByDeletingLastPathComponent.
- Linted CFURL.js.
- CFURL constructor should copy when passed a CFURL.
- Added CFURL.createCopyDeletingLastPathComponent.
- Added test for URLByDeletingLastPathComponent.
2012-04-12 10:45:01 -04:00
Blair Duncan
6ede1ccb04
Unnecessary globals
2012-04-10 17:25:46 -04:00
Alexander Ljungberg
c528563421
Merge branch 'master' of github.com:cappuccino/cappuccino
2012-04-08 18:51:15 +02:00
Alexander Ljungberg
b746824933
Formatting.
2012-04-08 18:10:41 +02:00
Aparajita Fishman
e2ead56256
Collection KVC fixes, nextObject correctness
...
- Moved common CPArray/CPSet collection KVC operators to _CPCollectionKVCOperators.
- Implemented KVC operator dispatch using Objective-J.
- Fixed infinite loop with empty collection in @min, @max and @sum operators.
- Correctly return valueForUndefinedKey when necessary.
- valueForUndefinedKey reason uses raw description for consistency, class' overridden description may not helpful at all.
- Don't create a forwarder for @ operators with property paths.
- Fixed CPSet -valueForKeyPath to correctly deal with nil/undefined/empty values.
- Added tests for collection KVC operators.
- enumerator -nextObject should always compare against nil for clarity, correctness, and consistency.
2012-04-03 22:16:55 -07:00
Alexander Ljungberg
d2f3ceaf67
Documentation.
2012-03-27 23:45:18 +01:00
Alexander Ljungberg
271b935ba2
+ (BOOL)automaticallyNotifiesObserversOf<Key> support.
2012-03-27 23:42:17 +01:00
Aparajita Fishman
c321084990
Whitespace
2012-03-24 17:57:13 -07:00
cacaodev
9ef95e1f68
Support for decoding date type in XML 1.0, with test.
2012-03-23 22:28:42 +01: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
Alexander Ljungberg
79f2ec5d17
Refs #1480 . Change NSSortDescriptors to CPSortDescriptors in docs.
2012-03-19 21:03:04 +00:00
Ilya Kulakov
91eb23ba87
Implement -sortedArrayUsingDescriptors: for CPSet.
2012-03-20 03:43:49 +07: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
Alexander Ljungberg
e636087f4a
Fixed decodeBytesForKey in theory.
...
There's no way to encode bytes today in the first place.
2012-03-12 20:06:23 +00:00
Alexander Ljungberg
bd02ec057c
Style fix.
2012-02-24 19:44:26 +00:00
lynnchin
8cb7c05c88
Update line 171 to remove "%s" to populate the result string.
2012-02-01 19:13:59 +11:00
Randall Luecke
7dc213995c
Added CPObject's performSelector:withObject: and tests
2012-01-31 16:35:49 -05:00
Randall Luecke
b1e4a43cd3
Fixed and finished the documentation for CPSet and CPMutableSet.
2012-01-19 01:19:20 -05: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
cacaodev
ce2316a8ee
CPCompoundPredicate: Fixed typo in -isEqual:. With test.
2011-12-31 16:19:38 +01:00
cacaodev
b39f509263
CPArray (CPPredicate): -filteredArrayUsingPredicate: and -filterUsingPredicate:
...
Use CPArray methods (not js array) because the receiver can be a CPArray subclass. With tests.
Fixes the bug reported here: https://groups.google.com/forum/?pli=1#!topic/objectivej/8q9hqbZZUv0
2011-12-29 17:16:53 +01:00
cacaodev
1ea95bf6e0
CPExpression: renamed private classes to follow naming rules.
2011-12-17 16:10:06 +01:00
cacaodev
08d690b65d
Completed isEqual: support for CPExpression & CPPredicate subclasses
2011-12-17 15:37:43 +01:00
Alexander Ljungberg
3dff67e0b1
Faster CPNotificationCenter removeObserver.
...
Removing observers is now faster, significantly so when there are very many observers and one or more is removed while a notification is being posted.
2011-12-07 01:48:16 +00:00
Alexander Ljungberg
bb0972ba49
Fixed: notifications were sent to removed observers.
...
If one observer of a notification centre notification removed another observer, that other observer would still be notified even that it was no longer observing.
Now the code agrees with its comments.
2011-12-01 18:18:15 +00:00
Alexander Ljungberg
476c02976b
Code formatting.
2011-11-23 00:28:27 +00:00
Alexander Ljungberg
3cee00323c
Don't separate statements by commas.
2011-11-10 12:31:16 +00:00
Alexander Ljungberg
063b05d964
Fixes #1384 . Avoid user defaults QUOTA_EXCEEDED_ERR crash.
...
Switch to cookie based user defaults if HTML 5 local storage exists but is disabled, as is the case when Safari is in 'private browsing' mode.
Don't crash if the local storage quota is reached. Instead log a warning and silently fail to store the new user default.
2011-10-24 01:12:02 +01:00
Alexander Ljungberg
68c8d15ed4
Improve split view delegate error handling.
...
Fixed: if the split view delegate sent non numeric responses when asked to constrain divider positions, subviews would be resized with corrupt size information, which in turn could lead to infinite loops and redraw errors. These bad results are now handled more gracefully.
2011-10-21 15:55:34 +01:00
Stephen Ierodiaconou
b05d0dd1ec
Fix for comparing decimal numbers < 1.0 with 0.0
2011-10-01 10:50:23 +01:00
Klaas Pieter Annema
e99e2660e9
more fixes and tests for _CPKVCArray
2011-09-16 11:43:42 +02:00
Klaas Pieter Annema
5b00f7f2e8
improve _CPKVCArray
...
_CPKVCArray now consistently calls both single and multiple indexes accessors consistently
Tests that verify the behavior are included
2011-09-15 22:32:23 +02: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
Alexander Ljungberg
78b9c5b576
Fixes #1343 . Support nested willChange… didChange… calls.
...
When multiple calls are nested, only the first willChange… and the last didChange… will notify observers, avoiding duplicate notifications for the same change.
2011-09-07 16:14:01 +01:00
Alexander Ljungberg
c77a282aaf
Raise CPRangeException if CPString substringToIndex: is out of bounds.
2011-08-27 23:50:18 +01:00
Alexander Ljungberg
7a1cd5c545
Fix CPString substringToIndex documentation. The index parameter is not inclusive.
2011-08-27 23:49:40 +01:00
Francisco Ryan Tolmasky I
aa452952a8
Merge pull request #1344 from aparajita/valueForKeyPath-tweak
...
Much more efficient test for first character of string
2011-08-18 09:43:46 -07:00
Aparajita Fishman
6ea4aa0a66
Much more efficient test for first character of string
2011-08-18 00:52:59 -04:00
Randy Luecke
eba5dbe654
Merge pull request #1334 from aparajita/array-range-checking
...
Added some missing range checking.
2011-08-17 11:11:49 -07:00