Alexandre Wilhelm
d481d9cca5
Fixed: added queue to the method addObserverForName:(CPString)aNotificationName object:(id)anObject queue:(id)queue usingBlock:(Function)block
2014-11-20 23:38:53 -08:00
Alexandre Wilhelm
fe25dbd872
New: added method addObserverForName:object::usingBlock: in CPNotificationCenter
...
Previously, the method addObserverForName:object::usingBlock: didn't exist in Cappuccino.
Now it does.
To observe, you need to use the method - (id <CPObject>)addObserverForName:(CPString)aNotificationName object:(id)anObject usingBlock:(Function)block
To unregister observations, you pass the object returned by this method to removeObserver:. You must invoke removeObserver: or removeObserver:name:object:.
Test /Tests/Foundation/CPNotificationCenterTest.j
Fixed #2259
2014-11-20 15:24:23 -08:00
Andrew Hankinson
de2e77cc86
Adding userInfo error keys and documenting CPURLError.j
2014-11-06 17:23:27 -05:00
Antoine Mercadal
45248bcb65
FIXED: ivars warning fixes
2014-11-06 12:17:58 -08:00
Antoine Mercadal
f9275a70af
FIXED: New warnings reveleaded by ivar type checking
...
This patch fixes all new warnings
2014-11-06 10:17:05 -08:00
Andrew Hankinson
ef5d1d6e58
Fixed: Wrong method included on CPError
2014-11-01 09:27:12 -04:00
Andrew Hankinson
7811521c08
New: CPURLError definitions
...
This commit adds support for the CPURLError codes, with underlying support provided by Foundation's CFURL Errors.
2014-11-01 09:03:08 -04:00
Andrew Hankinson
96135c9875
New: Toll-free bridged CPError with CFError
...
This commit changes CPError to use a toll-free bridge with CFError, matching Cocoa's implementation of this class.
2014-11-01 09:01:42 -04:00
Andrew Hankinson
0399b3daed
Fixed: Renamed CPCoder method to match language
...
Previously CPCoder had a method named "encodeValueOfObjCType" which is a misnomer.
This commit renames the method to "encodeValueOfObjJType."
2014-11-01 07:41:51 -04:00
Alexandre Wilhelm
d5e811f9f1
Fixed: exception descriptions in CPDate did not countain all of the needed informations
2014-10-26 21:27:10 -07:00
Alexandre Wilhelm
6d3f430b24
Fixed: constructor of CPDate can take string param
...
Previously, when making a CPDate with some constructors, we could pass a string or nil to create a date. For example it was allowed to do var date = [CPDate dateWithTimeIntervalSince1970:"10"];
Now this is not possible anymore and it works like in Cocoa, only number are authorized.
2014-10-22 17:27:46 -07:00
Martin Carlberg
643566bbfd
Honor options when creating KVO change dictionary
2014-10-09 19:27:57 +02:00
Sebastian Balay
fa5fd1e71c
Add support to diacritic insensitive search in CPString rangeOfString:options:range: method
...
When searching by range, the option of diacritic insensitive search was not being contemplated
Also add support to strip variants of 'E' 'I' 'O' 'U' that were not implemented.
Source: http://www.ascii-code.com/
2014-09-08 10:01:12 -03:00
ratijas
06240d1183
-setFloat:forKey: @selector(aValue) -> @selector(floatValue)
2014-09-03 16:08:21 +00:00
Alexander Ljungberg
58928a5000
Formatting: CPDateFormatter changes and tests.
...
Refs #2155 .
2014-07-22 12:49:35 +01:00
Alexander Ljungberg
4c44ede945
Merge pull request #2155 from krodelin/CPDateFormatter-emptyLanguages
...
Fixed: CPDateFormatter now works for non-"en" locales [+1]
2014-07-22 12:41:03 +01:00
Antoine Mercadal
51440cc7f7
Merge branch 'FIXED--insertAttributedString-did-not-coalsece' of https://github.com/daboe01/cappuccino into daboe01-FIXED--insertAttributedString-did-not-coalsece
2014-07-10 11:38:37 -07:00
Antoine Mercadal
09f100c0c2
Merge branch 'fix-cfhttp-cpurl-2141-2138' of https://github.com/ahankinson/cappuccino into ahankinson-fix-cfhttp-cpurl-2141-2138
2014-07-09 15:45:28 -07:00
Udo Schneider
9119e08342
Fixed: CPDateFormatter now works for non-"en" locales
...
CPDateFormatter previously only defined symbols for "en"-locale. Using another locale simple yielded nil-results for most keys. This fix addresses this behavior by always returning the english symbols as default unless other symbols have been explicitly provided or set.
2014-07-01 00:26:51 +02:00
Andrew Hankinson
32657793c8
Formatting: CPURLConnection
2014-06-23 16:13:36 -04:00
Andrew Hankinson
63eb88c6ae
Merge branch 'fix-cfhttp-cpurl-2141-2138' of github.com:ahankinson/cappuccino into fix-cfhttp-cpurl-2141-2138
2014-06-23 15:51:31 -04:00
Andrew Hankinson
28520cc493
Formatting: Cleaning up CPURLConnection
...
Removed some extra whitespace and added a newline at the end of the file.
2014-06-23 15:51:13 -04:00
Ryan Bannon
8be05b404c
Fixed: change variable name
...
Changed "returnValue" to "connection" - more descriptive.
Ref: https://github.com/cappuccino/cappuccino/pull/2144#commitcomment-6769088
2014-06-23 15:47:40 -04:00
Ryan Bannon
ba9eac3ea4
Working #2144 : Reintegrated changes from #2138 and fixed test fail.
...
Now using instance variables for withCredentials. Also fixed test failure.
2014-06-23 13:08:36 -04:00
Alexander Ljungberg
5fafc97bc0
Merge branch 'master' into fastobjj
2014-06-22 13:05:32 +01:00
Andrew Hankinson
ffcef907b3
Fixed: CPURLConnection now accepts withCredentials
...
From the original PR:
CPURLConnection was modified to reduce the withCredentials flag to a file-scope member. This has been done to facilitate use of withCredentials when a developer cannot modify the CPURLConnection manually (e.g. https://github.com/wireload/Ratatosk/blob/master/WLRemoteLink.j , line 466).
Refs #1296 , #2138
2014-06-21 20:36:12 -04:00
cacaodev
e0772500c9
Merge remote-tracking branch 'upstream/master' into CPAnimationContext
...
Conflicts:
AppKit/CPView.j
2014-06-11 20:24:46 +02:00
Alexander Ljungberg
7c6ef51cb2
New: CPDate dateByAddingTimeInterval:.
...
Refs #2126 .
2014-06-03 17:41:35 +01:00
daboe01
9ad3e50511
fixed: .insertAttributedString.. does not coalesce
2014-04-19 14:32:54 +02:00
Martin Carlberg
0efb7e67c9
Fixed: Use new fast msgSend function for some foundation classes
2014-04-10 11:03:49 +02:00
cacaodev
4b8a91fb8c
Merge remote-tracking branch 'upstream/master' into CPAnimationContext
...
Conflicts:
AppKit/CPCompatibility.j
2014-02-21 20:39:35 +01:00
Alexander Ljungberg
a31ad2c367
Fixed: CPAttributedString isEqual: despite attribute differences.
...
As soon as a range reached the end of the string the equality test would end with a YES, without even comparing the final attribute dict.
2014-02-13 12:41:14 +00:00
Alexander Ljungberg
bd2f63c232
Improve CPAttributedString coding.
...
Refs #2050 .
2014-02-13 12:17:37 +00:00
Alexander Ljungberg
532a874ba6
Merge pull request #2050 from daboe01/NEW--archiving-for-CPAttributedString
...
NEW: CPCoding for CPAttributedString
2014-02-12 22:02:18 +00:00
Alexander Ljungberg
48fa46e0d5
Formatting: CPAttributedString.
...
Refs #2045 .
2014-02-12 21:57:44 +00:00
daboe01 and Alexander Ljungberg
3063d53a2b
more formatting
2014-02-12 21:57:44 +00:00
daboe01 and Alexander Ljungberg
e4163c5da4
formatting
2014-02-12 21:57:44 +00:00
daboe01 and Alexander Ljungberg
d8e4f1150e
more protection against edge cases
2014-02-12 21:57:44 +00:00
daboe01 and Alexander Ljungberg
c2534ae6da
unit-tests + simplification
2014-02-12 21:57:44 +00:00
daboe01 and Alexander Ljungberg
342ea97406
yet another minor fix
2014-02-12 21:57:43 +00:00
daboe01 and Alexander Ljungberg
6f66c06111
fixed one last minor glitch
2014-02-12 21:57:43 +00:00
daboe01 and Alexander Ljungberg
aaeffe61a6
editing fix
2014-02-12 21:57:43 +00:00
daboe01 and Alexander Ljungberg
f5daa96c8e
minor fix
2014-02-12 21:57:43 +00:00
daboe01 and Alexander Ljungberg
67fed5f3d7
fixing editing semantics
2014-02-12 21:57:43 +00:00
Udo Schneider
9d04ad5097
Merge branch 'refactor-locale' into fix-CPNumber-numberWithBool
2014-01-23 21:46:09 +01:00
Antoine Mercadal
047983d7bf
Merge pull request #2052 from Dogild/CPDatePickerRefactor
...
Fixed : CPDatePicker textual issues
2014-01-14 16:04:17 -08:00
Alexandre Wilhelm
1dc84f9b58
Fixed: issue with _dateWithTimeZone when timeZone is null
...
Fixed the private method _dateWithTimeZone when aTimeZone is null
2014-01-14 15:10:55 -08:00
daboe01
a1ea371c73
NEW: CPCoding for CPAttributedString
2014-01-10 12:26:52 +01:00
Martin Carlberg
acd5442246
Fixed: RelativeDateFormating didn't work in January and was inaccurate for some time intervals around when daylight saving time changed.
2014-01-09 17:16:05 +01:00
Udo Schneider
d176dd0623
Fixed: CPNumber>>numberWithBool: breaks CPComparisonPredicate
...
Commit df2be92 breaks CPComparisonPredicate if one side of the comparison is a property which returns a BOOL.
CPPredicateParser parses literal BOOLs (YES/NO) into 0/1 using CPNumber>>numberWithBool:. CPComparisonPredicate however does not cast a BOOL from a property using numberWithBool:. E.g.
[[YES,NO] filteredArrayUsingPredicate:[CPPredicate predicateWithFormat:'self = YES']]
used to return [true], now it returns [].
This fix addresses the issue by "typecasting" the lhs/rhs values to numbers using CPNumber>>numberWithBool: if they are of type boolean.
Fixes #2028
2013-12-27 18:30:15 +01:00