Martin Carlberg
fa18095538
Fixed: Does not add extra parentheses for expression operators with the same precedence
2013-03-20 20:47:27 +01:00
Martin Carlberg
92ac8569b3
New: Full support for generate code instead of copy
...
The new compiler can now generate code. The old way of copy and alter the source
code is still supported.
2013-03-17 21:00:24 +01:00
Martin Carlberg
0c982b0999
Fixed: An ExpressionStatement with a Send message expression can be parsed wrongly
...
When a statement ends without a semicolon and a Send message expression is on the next line it was wrongly parsed as a single Send message expression. It should be an ExpressionStatement with a Send message expression inside.
2013-03-17 20:52:21 +01:00
Martin Carlberg
bef0ca18c6
New: New option to generate code for the objjc tool
...
A new option flag '-G' can be added to let the compiler generate the code instead of copy and alter it from the source code
2013-03-17 20:45:34 +01:00
Martin Carlberg
22cdbd7ec7
Merge branch 'master' of https://github.com/cappuccino/cappuccino into preprocess
...
Conflicts:
Objective-J/ObjJAcornCompiler.js
Objective-J/acorn.js
2013-03-12 11:20:56 +01:00
Martin Carlberg
362f3b890e
Added first try for compiler to generate code
2013-03-12 09:22:26 +01:00
aparajita
da69a6e339
Merge pull request #1845 from cacaodev/CPCollectionView-doc
...
Docs: CPCollectionView-setItemPrototype: method documentation
2013-03-11 21:20:14 -07:00
Antoine Mercadal
26213491a3
Revert "don't allow views from another window to be next/previouskeyViews"
...
This reverts commit 7fab8d9782 .
This breaks the repsonder chain if it is defined in a view that has no window yet.
Details and reduction here: https://github.com/cappuccino/cappuccino/commit/7fab8d9782d4604c4441e48701f9207e4a2b4229#commitcomment-2781849
2013-03-11 13:01:22 -07:00
cacaodev
0d168a4518
Remove //@class CPClipView
2013-03-11 17:52:21 +01:00
cacaodev
0e4f5e9203
Uncomment import
2013-03-11 17:14:00 +01:00
aparajita
bbc7d2f29e
Merge pull request #1848 from ahankinson/cptableview-documentation-formatting
...
Formatting: various CPTableView fixes
2013-03-11 09:08:46 -07:00
cacaodev
a98def4326
Added doc for -setItemPrototype: explaining how to setup the item prototype when you want to use bindings for the view.
2013-03-11 16:49:19 +01:00
Andrew Hankinson
b274c63395
CPTableView formatting
...
Formatting, whitespace and typo correction.
2013-03-11 10:01:46 -04:00
cacaodev
cd96f78228
CPPredicate: use @ref instead of custom function
2013-03-10 19:56:07 +01:00
Alexander Ljungberg
5f2d1b8255
Merge branch 'master' of github.com:cappuccino/cappuccino
2013-03-10 17:41:42 +00:00
Alexander Ljungberg
483bd16a2d
Formatting: simplify code slightly.
2013-03-10 17:40:58 +00:00
Alexander Ljungberg
b53616ead3
New: @deref(<any idempotent expression>).
...
This change makes it possible to @deref any expression, such as a conditional expression, as long as the expression doesn't have side effects.
The reason not to allow dereferencing of expressions with side effects is that we might need to evaluate the expression twice in certain uses of deref, which is not obvious when you look at the deref operator in plain code.
2013-03-10 17:32:28 +00:00
Alexander Ljungberg
f201ab0721
New: update operators on references, such as @deref(x)++.
...
This fix implements support for both prefix and postfix update operators on a dereference.
2013-03-10 14:02:37 +00:00
Alexander Ljungberg
767a7a7177
Test: expand CPNumberFormatter test to be more complete.
...
- Cover the formatting of @"" to nil.
- Check error messages by reference.
- Check output values.
- use @ref() instead of hand coded AT_REF.
Refs #1829 .
2013-03-10 13:31:56 +00:00
Alexander Ljungberg
39b49d47f9
Fixed: CPNumberFormatter formatted @"" as any number.
...
Without this fix, `- CPNumberFormatter getObjectValue:forString:errorDescription:` would return `YES` for string @"", like if it was properly converted to an object value, but then actually leave object value unchanged.
With this fix object value is set to nil like in Cocoa.
Refs #1829 .
2013-03-10 13:30:35 +00:00
Alexander Ljungberg
c550cd7afb
New: optimise CPArray enumerateObjectsWithOptions:usingBlock:.
2013-03-10 13:09:24 +00:00
Alexander Ljungberg
f4096b94a7
New: use @ref and @deref instead of Ref.h throughout Cappuccino.
2013-03-10 13:08:34 +00:00
Alexander Ljungberg
9b4c126534
Unit test @ref and @deref.
2013-03-10 12:17:59 +00:00
Alexander Ljungberg
34faf362d1
New: @ref and @deref in Objective-J 2.0.
2013-03-10 12:17:43 +00:00
aparajita
1a24e954f9
Merge pull request #1838 from ahankinson/fix-issue1284
...
Docs: path to objj mode was wrong in docs
Closes #1284
2013-03-09 19:45:51 -08:00
Aparajita Fishman
eb6cdfe97c
Typo: fixed spelling in comment
2013-03-09 14:35:16 -05:00
Aparajita Fishman
a01de54b65
Fixed: optimize access to object property
...
Accessing a property via dot notation is faster than indexing via a string.
2013-03-09 14:34:58 -05:00
aparajita
5c7e26c176
Merge pull request #1826 from stewa/non-string-markers
...
New: use dedicated class instead of CPString for selection markers
Previously, selection markers were strings, which allowed the possibility that user data could be mistaken for a selection marker.
With this commit, selection markers are global instances of a private class, removing the possibility of clashes with user data.
2013-03-09 08:59:37 -08:00
aparajita
4da1c67d18
Merge pull request #1837 from BlairDuncan/keyViewLoopInfinateLoopFix
...
Fixed: views from other windows cannot be next/previous key views
Previously, a view from another window could be set as the next/previous key view, which would result in unexpected behavior, including an infinite loop.
This commit ensures the proposed next/previous view belongs to the same window as the view to which it will be chained.
2013-03-09 08:17:52 -08:00
aparajita
f3d0cdbddc
Merge pull request #1836 from kerusan/cpruleeditor_tooltip_localization
...
Fixed: CPRuleEditor tooltips were not localized
Tooltip text was hardcoded in English. Now they use the localizer.
2013-03-09 07:56:44 -08:00
Andrew Hankinson
5fd241f7d7
Fix #1284 : Update Emacs documentation
...
Small fix to update documentation for emacs. Fixes #1284 .
2013-03-08 23:04:23 -05:00
Blair Duncan
7fab8d9782
don't allow views from another window to be next/previouskeyViews
2013-03-08 12:27:19 -05:00
Andrew Hankinson and Aparajita Fishman
5fac631f6f
New: minimum/maximum support for CPNumberFormatter
...
Previously, minimum and maximum were not supported in CPNumberFormatter.
This commit adds support for these in IB and via code. Updated unit tests included.
Fixes #1829
2013-03-08 09:30:31 -05:00
cacaodev and Aparajita Fishman
72c277d9ee
New: CPSegmentedControl segment selection bindings support
...
This commit adds support for the segment selection bindings: selectedIndex, selectedLabel, and selectedTag.
Sample app included.
2013-03-08 08:54:00 -05:00
Aparajita Fishman
0fdf648e1b
Formatting: added missing whitespace
2013-03-08 08:35:16 -05:00
aparajita
ba1fc13eed
Merge pull request #1827 from stewa/issue1499-simple
...
Fixed: null placeholder is set correctly when using bindings
2013-03-08 05:32:01 -08:00
Kjell Nilsson
197decc842
Changed tooltip word to lowercase to follow other tooltip formatting
2013-03-08 13:47:46 +01:00
aparajita
9e5aa39781
Merge pull request #1835 from BlairDuncan/undoManagerFix
...
Fixed: initialize _undoCount to 0 so comparison tests work correctly
2013-03-08 04:19:22 -08:00
Kjell Nilsson
c381672aee
Added localization of tooltips with the standard localizer
2013-03-08 09:52:55 +01:00
Blair Duncan
62670a4fa4
improved as per aparajita
2013-03-07 22:18:59 -05:00
Aparajita Fishman
4469046b3b
Revert "Fix #357 : Fix resizeWithOldSuperviewSize to work more like Cocoa"
...
This reverts commit 4605130a53 , which is breaking sheets.
2013-03-07 16:49:25 -05:00
Blair Duncan
7d51a34d11
fix for undoManager isUndoRegistrationEnabled
2013-03-07 16:21:37 -05:00
Stefan Wallström
5cbe94ba66
CPTextField: Optimization: Only restore null placeholder when setting null values through binders.
2013-03-07 20:32:57 +01:00
Antoine Mercadal
f690d672a2
Merge pull request #1832 from mrcarlberg/compiler_build_capital_j_extension
...
Fix #1822 : Will compile or issue correct error message when wrong case is used...
2013-03-07 11:20:05 -08:00
Aparajita Fishman
cdb9777e96
Fixed: "Remove" button did not move with window resize
...
In the Manual/TableTest/DataView test app, the remove button did not pin to the right edge of the window when it resized.
2013-03-07 12:16:22 -05:00
aparajita
2bc5efe641
Merge pull request #1815 from cacaodev/CPTableView-issue1814
...
CPTableView fix for #1814 .
2013-03-07 09:13:33 -08:00
Martin Carlberg
5481ce25b2
Fixed: Will compiler or issue correct error message when wrong case is used in filename on @import statements
2013-03-07 17:48:21 +01:00
Stefan Wallström
bd269501ac
Fixed parameter type for _placeholderForMarker:
2013-03-07 12:49:19 +01:00
Stefan Wallström
455ff57eec
Fixed return type for _placeholderForMarker:
2013-03-07 12:39:04 +01:00
Stefan Wallström
51e682335b
Use UID instead of hash.
2013-03-07 12:37:35 +01:00