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
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
Alexander Ljungberg
797bfeec98
Implement CPPointInRect.
...
This improves source code compatibility with Cocoa when replacing NS with CP.
2012-10-24 15:35:42 +01:00
Alexander Ljungberg
59ad8499df
Refs #1676 . Whitespace.
2012-09-24 17:05:35 +01:00
Johan Stille
eb2bb24c19
Added support for CPNumberFormatterPercentStyle in CPNumberFormatter.
2012-09-24 12:08:31 +02:00
Alexander Ljungberg
63bad1dae0
Setting _data just once is enough.
2012-09-02 17:28:34 +01:00
Alexander Ljungberg
46848562d0
Improve describe format of CPDictionary and CPArray to be more like literals.
...
E.g. a dictionary is expressed as @{key1: value1}, an array like @[value2, value2], a string like @"<value>".
Also don't put all child objects into quotation marks - that makes them all look like strings.
2012-08-24 17:25:37 +01:00
Eric Wong
def8016f44
code style change
2012-08-05 09:35:44 +08:00
Eric Wong
175c70d99e
fix a new bug in CPDecimalMakeWithString and remove some test cases
2012-08-05 08:37:44 +08:00
Eric Wong
9f1a8fa7a2
enable '.003' or '-.003' style number in CPDecimalMakeWithString function and add new test cases
2012-08-04 23:04:40 +08:00
Alexander Ljungberg
31ea0da526
CPNumberFormatter generatesDecimalNumbers support, enabled by default.
2012-08-04 13:45:45 +01:00
Alexander Ljungberg
3a2bf36359
Very basic CPNumberFormattercurrency style.
2012-08-04 13:37:42 +01:00
Alexander Ljungberg
dc0c63ccc3
Extend CPNumberFormatter CPCoding support and fix rounding default.
2012-08-04 02:31:43 +01:00
Alexander Ljungberg
534635cbc2
Fix CPNumberFormatter maximum/minimum fraction digits property name.
2012-08-04 01:21:42 +01:00
Alexander Ljungberg
a7f22a0c5a
Correct CPNumberFormatter maximumFractionalDigits default.
2012-08-04 01:09:51 +01:00
Alexander Ljungberg
b279a92e4c
CPNumberFormatter setMinimumFractionDigits: support.
2012-08-04 00:55:41 +01:00
Alexander Ljungberg
055dd7229e
Properly allow CPNumberFormatter to operate on most CPNumber types.
...
This only worked by accident before.
2012-08-04 00:48:45 +01:00
Ilya Kulakov
c57ef67784
Starting from 10.7 NSUndoManager posts NSUndoManagerDidCloseUndoGroupNotification.
2012-07-25 17:02:06 +07:00
Alexander Ljungberg
d0b152c638
Merge pull request #1630 from slevenbits/cparray-fix
...
Fix CPArray should throw an exception when observer is added/removed.
2012-07-23 15:34:38 +02:00
Alexander Ljungberg
aab8ade15b
Refs #1629 . Fixed: aSet removeObject: for an object not a member is not an error.
2012-07-23 15:25:52 +02:00
Ilya Kulakov
a3179080d3
Fix CPArray should throw an exception when observer is added/removed.
2012-07-23 19:48:05 +07:00
Ilya Kulakov
985759ce91
Fix CPSet's member never checks equality of objects at Objj level.
2012-07-23 19:34:40 +07:00