Martin Carlberg
0dd98b56bc
"self." is only added to instance variables when compiling an instance method
2013-01-09 10:21:16 +01:00
Martin Carlberg
0a573f9da1
Removed unused 6th parameter
2013-01-09 09:29:43 +01:00
Martin Carlberg
957b34d169
Added the option trackSpaces to attach spacesBefore and spacesAfter properties to AST nodes.
2013-01-08 22:23:34 +01:00
Martin Carlberg
79d2ac0566
Fixed some comments and removed unwanted spaces
2013-01-08 22:19:55 +01:00
Martin Carlberg
547f9ff61f
Merge with latest from Acorn master
2013-01-08 22:18:19 +01:00
Martin Carlberg
9f0da2ec41
Fixed spelling error
2013-01-08 22:13:36 +01:00
Martin Carlberg
c755dc3ed9
Added some more detailed error messages in parser
2013-01-08 17:00:54 +01:00
Martin Carlberg
d20fb2039a
Missed some lines in manual merge
2013-01-08 14:34:29 +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
Martin Carlberg
8100cdb17f
Fixed "Can't find variable: ObjJCompiler" error
2013-01-07 23:13:54 +01:00
Martin Carlberg
d49e78c43e
Removal of old compiler
2013-01-07 20:29:56 +01:00
Martin Carlberg
cf46768ac7
Removal of logs
2013-01-07 20:29:45 +01:00
Martin Carlberg
cfe718f4ef
Handle preprocessor lines like "#pragma"
2013-01-07 20:29:35 +01:00
Martin Carlberg
bf32b90702
Allow signed, unsigned, char, short, int and long to be an identifier
2013-01-07 20:29:13 +01:00
Martin Carlberg
9cb14d6db3
Added new faster compiler based on acorn parser
2013-01-07 09:59:10 +01:00
Martin Carlberg
140cf0debe
Code cleanup
2013-01-07 09:55:12 +01:00
Aparajita Fishman
45ad5375a2
Full platform windows and popovers can become main
2013-01-07 07:07:27 +08:00
Alexander Ljungberg
259adda77d
Merge pull request #1713 from milestinsley/CPBrowserStyleProperty-fix
...
Improved support for converting CSS properties to their JS equivalent in CPBrowserStyleProperty
2013-01-06 17:31:08 +00:00
Miles Tinsley
964f3fe06d
Improved the reliability of CPBrowserCSSProperty by checking for the browser prefix *before* hyphenating the camel-cased string.
...
This has the added benefit of ignoring unknown/unsupported prefixes, providing the property itself is camel-cased.
For example:
"LinearBackground" -> "linear-background"
"Linear-Background" -> "linear-background"
"linear-background" -> "linear-background"
"fooLinearBackground" -> "linear-background"
and
"WebkitLinearBackground" -> "-webkit-linear-background"
"MozLinearBackground" -> "-moz-linear-background"
etc..
2013-01-06 17:20:37 +00:00
Miles Tinsley
002c49b32f
Updated CPBrowserCSSProperty to support camel cased style property names and convert them into valid browser-aware CSS properties.
2013-01-06 16:57:31 +00:00
Alexander Ljungberg
d4313be406
Merge pull request #1713 from milestinsley/CPBrowserStyleProperty-fix
...
Improved support for converting CSS properties to their JS equivalent in CPBrowserStyleProperty
2013-01-06 15:48:49 +00:00
Miles Tinsley
76a4ded128
Improved support for converting CSS properties to their JS equivalent in CPBrowserStyleProperty
...
For example, the following CSS property names all resolve to the same correct JS equivalent for the current browser:
* CPBrowserStyleProperty('TransformOrigin') -> 'WebkitTransformOrigin'
* CPBrowserStyleProperty('transform-origin') -> 'WebkitTransformOrigin'
2013-01-06 13:26:01 +00: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
Antoine Mercadal
3e6517849e
Add manual test for CPSegmentedControl
2013-01-04 12:15:09 -08:00
Antoine Mercadal
deacdde521
Fix bug in CPSegmentedControl not reducing his size when removing segments
2013-01-04 12:14:22 -08:00
Alexander Ljungberg
dcdcd8e41a
Fixed: CPPanel could not always become the key window.
...
Without this fix, `CPPanel` followed the same rules as `CPWindow` with regards to becoming the key window. But `CPPanel` is supposed to always be willing to become the key window, as stated in its documentation.
This change makes `CPPanel` always return `YES` for `canBecomeKeyWindow`.
2012-12-31 14:53:04 +00:00
Alexander Ljungberg
24443221f2
Merge pull request #1708 from imageoptimiser/optimised-images
...
Optimise images (94 KB reduction)
2012-12-27 16:12:46 +00:00
imageoptimiser
787dd10c69
Optimised images
2012-12-24 12:10:02 +00:00
Alexander Ljungberg
9705f1fe28
Commit message guidelines.
2012-12-21 11:25:13 +00:00
Martin Carlberg
d5748474d0
Forgot some more lines
2012-12-20 22:55:58 +01:00
Martin Carlberg
2277fb04b9
Missed to commit some stuff for scope handling
2012-12-20 18:19:39 +01:00
Martin Carlberg
78b2d30905
Added better support for scope
2012-12-20 18:01:47 +01:00
Martin Carlberg
ed81d75815
Removes #pragma lines
2012-12-20 17:49:23 +01:00
Martin Carlberg
ac3a399df3
Set to use new compiler when compiling with jake
2012-12-20 15:20:38 +01:00
Martin Carlberg
619f90c677
Removed debug stuff
2012-12-20 15:20:12 +01:00
Martin Carlberg
0f3d5f4b10
Added support to choose which compiler should be used when compiling in the browser. Default is old compiler but add "ObjJCompilerSetUsedVersion("objj_compiler2");" in the index.html (and/or index-debug.html) to use new compiler in browser.
2012-12-20 14:26:49 +01:00
Martin Carlberg
26be5bf264
Better error message when importing file that is not found
2012-12-20 14:23:54 +01:00
Martin Carlberg
227c696750
Removed circular imports in CPToolbarItem.j
2012-12-20 14:22:09 +01:00
Martin Carlberg
b1cec9480e
New test cases to test ivar handling in new compiler
2012-12-20 09:37:52 +01:00
Martin Carlberg
982da962e5
Fixed problems due to the removal of with(self)
2012-12-19 23:51:42 +01:00
Alexander Ljungberg
2a11bdb7ef
Fixup: previous fix undid penultimate fix.
2012-12-18 00:34:14 +00:00
Alexander Ljungberg
3775c3fb2e
Fixed: CPAlert was a CPView.
...
Before this fix, CPAlert subclassed CPView, causing an API mismatch with Cocoa and exposing unexpected methods in the public API which made no sense for a CPAlert such as autoresizing masks. It also lead to CPAlert mistakingly shadowing _window from its CPView superclass.
This fix makes CPAlert inherit from CPObject as it should. The theming, which needs to be applied to a view, was moved to an internal view.
2012-12-18 00:22:19 +00:00
Alexander Ljungberg
cea120945c
Fixed: CPAlert sheet crash.
...
Without this fix, CPAlert windows would not finish closing before sending the `alertDidEnd:returnCode:` delegate message. This would lead to a crash if the delegate method tried to open a new sheet.
This fix makes sure to fully order out the alert sheet before sending the delegate message.
2012-12-18 00:19:04 +00:00
Martin Carlberg
803c8ce6b5
A little code clean up.
2012-12-17 17:14:33 +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