Aparajita Fishman
e4283e2dc2
CPByteCountFormatterUseDefault doesn't need to be transformed, I'm checking for it in the code
2013-02-11 23:32:11 -05:00
Aparajita Fishman
a622f5ca9b
Formatting
2013-02-11 23:08:08 -05:00
Aparajita Fishman
12b2bd2c52
Wrong filename in header
2013-02-11 19:46:06 -05:00
Aparajita Fishman
aeb42ea4f8
CPByteCountFormatter, a complete implementation of NSByteCountFormatter, with test app
2013-02-11 14:08:41 -05:00
Aparajita Fishman
9d99b5f550
Hardly worth using a #define for something called once
2013-02-11 14:06:31 -05:00
Aparajita Fishman
63ae5848f6
Formatting, fixes for CPDecimal/CPDecimalNumber
...
- CPDecimalRound should return a result in all cases
- Fixed test of CPDecimalRound with CPDecimalNoScale
2013-02-11 14:05:52 -05:00
Alexander Ljungberg
5361b787c5
Merge pull request #1744 from stevegeek/master
...
Fix for issue #1720
2013-02-11 11:08:47 +00:00
Aparajita Fishman
b6a520e350
Typos, formatting
2013-02-10 20:02:55 -05:00
Alexander Ljungberg
c5c381a034
Merge remote-tracking branch 'stewa/truepredicate-fix'
...
Conflicts:
Foundation/CPPredicate/CPPredicate.j
2013-02-04 19:02:49 +00:00
cacaodev
04026c054b
_CPJavaScriptArray -objectsAtIndexes: implementation.
...
Added speed test in CPArrayPerformanceTest (6x faster).
2013-02-04 17:26:18 +01:00
Aparajita Fishman
d8e4769972
Misc. tweaks
...
- Removed stray console.error
- Made border of tooltips darker, they were almost invisible, even over a white background
- Added CGAlignStroke and CGAlignCoordinate, they are of general use
2013-02-03 08:39:30 +08:00
Alexander Ljungberg
f9095ceb74
Fix CPError typos.
2013-02-02 11:14:45 +00:00
Alexander Ljungberg
55ec70cbd6
CPError class.
2013-02-01 18:36:03 +00:00
Stephen Ierodiaconou
e17253d592
Fixes for #1720 : CPDecimalCompare problems when comparing to zero.
2013-01-30 13:03:43 +02:00
Alexander Ljungberg
b34e24d593
Fixed: mutableArrayValue remove repeat values.
...
mutableArrayValueForKey: … removeObjectsInArray should remove all instances of the found objects. Without this fix, only the first instance was removed.
2013-01-28 00:31:50 +00:00
Alexander Ljungberg
75d73d3a5e
Format object descriptions like object literals.
...
This change makes CPDictionary descriptions exactly like Objective-C literals. Later when Objective-J adds support for such literals too, it'll be possible to just copy and paste a CPDictionary description into code.
Also updated CPArray to look similar for consistency.
2013-01-26 12:01:20 +00:00
Alexander Ljungberg
237143851d
Fixed: KVC array removeObjectsInArray:.
...
Without this fix, KVCArray could try to remove an out of bounds index at CPNotFound from its target array.
This fix makes it so that only found objects are removed.
2013-01-26 01:18:22 +00:00
Alexander Ljungberg
76e9725e26
Error on adding CPNotFound to an index set.
2013-01-26 01:11:33 +00:00
Aparajita Fishman
95790d55d5
Object description formatting
...
- Made CPDescriptionOfObject smarter about detecting CG objects
- CPObject, CPArray, CPDictionary do a better (as in perfect) job of indenting nested objects
- CPDictionary is displayed using Cocoa-style key = value; notation
2013-01-25 19:19:01 +08:00
Alexander Ljungberg
65fd33b9cf
Fixed: 64a0fb2 broke CPCharacterSet.
...
The `cs == nil` to `cs === nil` change introduced by 64a0fb2 was incorrect. Since `CPCharacterSet` is used widely through Cappuccino this broke many unit tests and much functionality.
The fix is to again consider both `nil` and `undefined` as cause for initing a new character set.
2013-01-23 23:33:42 +00:00
Alexander Ljungberg
1f0ab2ab49
Fixes #1721 . Fixed: bad negative numbers from CPNumberFormatter.
...
Without this fix, CPNumberFormatter didn't format negative values well. E.g. with thousands separators on it could generate, "-,999.00".
This fix generally improves handling of negative numbers by CPNumberFormatter.
2013-01-23 22:23:50 +00:00
Aparajita Fishman
866e1f00f7
Objj2 compiler fixes
...
- Each file compiles individually with no errors or warnings.
- Added missing imports.
- Fixed imports to remove circularity.
- Removed unnecessary imports.
- Added missing headers.
- Added missing action_button.png.
- Replace CPMakeRect with CGRectMake.
2013-01-23 15:48:56 +07:00
Aparajita Fishman
64a0fb278b
Objj2 compiler fixes
...
Compiled all files individually:
- Added missing imports.
- Added @class/@global declarations to break circular dependencies.
- Fixed broken code in CPCharacterSet -hasMemberInPlane:
- Misc. code cleanup.
2013-01-23 15:45:08 +07:00
Aparajita Fishman
cc0503c8a4
Fixed missing import, deprecated CP functions, misnamed ivar
2013-01-21 12:07:03 +07:00
Alexander Ljungberg
806c7935c5
Lint.
2013-01-20 19:10:41 +00:00
Alexander Ljungberg
e7f0400580
Formatting.
2013-01-20 18:24:48 +00:00
Aparajita Fishman
7c831fa19d
capp_lint flags deprecated CPPoint/Rect/Size types/functions
...
- Changed to corresponding CG types/functions in all files
- Fixed some demo app bugs
2013-01-19 16:51:56 +07:00
Antoine Mercadal
bbb8bdb687
Fix other small bugs
2013-01-18 14:38:37 -08: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
ff20822b47
Merge branch 'master' of https://github.com/cappuccino/cappuccino into objj_compiler2_experiment
2013-01-17 18:20:07 +01:00
Antoine Mercadal
e8ee370499
Merge branch 'master' into objj2integration
2013-01-15 09:49:25 -08:00
Alexander Ljungberg
821961fc26
Argument check CPIndexSet indexSetWithIndex:.
...
Without this check, an index set could be initialised with NaN which would later lead to an infinite loop when enumerating the index set.
This error makes the error early and explicit.
2013-01-15 16:08:17 +00:00
Martin Carlberg
e78f211e8a
Added @class and @global declaration and will now make a warning if class or global is not declared.
2013-01-14 18:36:39 +01:00
Martin Carlberg
ed6c35a59f
Merge branch 'master' of https://github.com/cappuccino/cappuccino into objj_compiler2
...
Conflicts:
AppKit/CPWindow/CPWindow.j
2013-01-11 20:40:35 +01:00
Alexander Ljungberg
7485c4eb7a
New: -CPHTTPURLResponse allHeaderFields.
...
When a CPURLConnection response is of the CPHTTPURLResponse type, the raw HTTP headers can now be retrieved through the allHeaderFields message.
2013-01-11 10:53:42 +00:00
Martin Carlberg
74ad0faffa
Merge branch 'master' of https://github.com/cappuccino/cappuccino into objj_compiler2
...
Conflicts:
AppKit/CPWindow/CPWindow.j
2013-01-10 19:28:42 +01:00
Alexander Ljungberg
110bd20600
Fix return value type.
2013-01-10 11:48:52 +00:00
Martin Carlberg
df78df5908
Fixed class method that access isa property
2013-01-09 10:37:33 +01:00
Martin Carlberg
1c3411f808
Merge remote-tracking branch 'upstream/master' into objj_compiler2
...
Conflicts:
AppKit/CPWindow/CPWindow.j
2013-01-08 09:25:54 +01:00
Antoine Mercadal
8e16e6266e
Fix a bug where CPURL was not encoding self._baseURL and self._string
2013-01-07 16:04:08 -08:00
Aparajita Fishman
8d68e805f4
Fix CPWindow -canBecomeKeyWindow and -canBecomeMainWindow to match Cocoa behavior (and misleading documentation)
...
Minor code formatting cleanup as well
2013-01-06 16:21:10 +08:00
Stefan Wallström
24d6e581a6
Fixed: CPPredicate: TRUEPREDICATE didn't work
...
CPPredicate_BOOL didn't implement any methods necessary for TRUEPREDICATE to evaluate to true.
2013-01-03 11:04:53 +01:00
Martin Carlberg
982da962e5
Fixed problems due to the removal of with(self)
2012-12-19 23:51:42 +01:00
Martin Carlberg
ca99114b16
Forgot to add one file
2012-12-17 15:12:02 +01:00
Martin Carlberg
897adf27f0
Fixed import statements in nib2cib, bug in load system and some more fixes to test cases
2012-12-17 14:57:18 +01:00
Martin Carlberg
fd59efe41f
Bug fixes for failing test cases
2012-12-17 11:15:50 +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
77955f4e2b
Allow setTimeout(f) to support some JS libraries such as PDF.js.
...
Without this change some 3rd party JS libraries such as PDF.js, which rely on the nonstandard setTimeout(f), will not operate correctly.
According to MDN the delay argument is required. However browsers seem to treat setTimeout without delay argument the same as a delay of 0. This fix makes it so that Cappuccino apps do the same.
2012-12-11 00:57:42 +00:00