Martin Carlberg
d0cd976246
Fixed: Get class method instead of instance method
...
When asking a protocol for a specific class method we asked each super protocol for an instance method.
Thanks Frank for finding this!
2017-04-11 12:30:16 +02:00
Martin Carlberg
9ad2995168
Fixed: Some Javascript minifiers will convert ”\u2028” to a string with the actual line separator inside. It is not valid Javascript to have the actual character inside a string literal.
...
Instead of fixing bugs in different minifiers it is easier to rewrite this small function. The same applies to \u2029
2016-04-07 10:32:47 +02:00
Martin Carlberg
51fc6518e1
Fixed: Removed some trailing white spaces
2016-04-07 10:32:46 +02:00
Martin Carlberg
530db4e904
Fixed: Merged in the same parser and compiler that is used in the objj-runtime that is running on node.
...
The life will be easier to have the same in both environments.
Warnings and errors now don’t use read only properties for line and column information. So the test cases in Toolstest.j now work in modern JS engines.
It is also easier to set options for the compiler.
2016-04-07 10:32:46 +02:00
Martin Carlberg
e38d6c9f9e
Fixed: //@ sourceURL=... is deprecated since many years ago.
...
We have not changed it for support of older browsers.
Chrome version 51 and above writes a warning about it
in the console so it is time now.
2016-03-07 13:44:29 +01:00
Martin Carlberg
16dea2ee09
Fixed: Allow build in directory with space in path
2016-02-03 17:26:24 +01:00
Alexandre Wilhelm
0508b70658
Refactored: refactoring of the file CFHTTPRequest.js
2015-12-02 11:32:04 -08:00
Alexandre Wilhelm
04f8545397
Merge pull request #2368 from Rosch/master
...
Fix startup on IE10
2015-12-02 11:25:59 -08:00
cacaodev
633f985360
CFHTTPRequest : removed unused variable.
2015-12-02 17:51:49 +01:00
Antoine Mercadal
3cf0d60f5d
Merge pull request #2399 from mrcarlberg/default_include_method_types
...
Default include type signatures for all kind of builds
2015-11-23 13:38:14 -08:00
Martin Carlberg
c2f95f7953
Fixed: Runtime method argument functions will now comply to how Objective-C runtime works.
2015-11-23 10:48:15 +01:00
Martin Carlberg
141d737ca5
Fixed: Removed old function instead of mark it deprecated
2015-11-20 14:54:11 +01:00
Martin Carlberg
d0fd53a2ca
Added: Function method_getNumberOfArguments
2015-11-20 14:53:46 +01:00
Martin Carlberg
3e0a6ea2cf
Fixed: Return NULL when out of bounce
2015-11-20 14:52:53 +01:00
Martin Carlberg
b132a66707
Fixed: Compiler option 'IncludeTypeSignatures' is default turn on for all type of builds. It can optionally be turned off.
2015-11-20 12:33:00 +01:00
Martin Carlberg
e4560df62f
Fixed: Use correct property in decorator
2015-11-10 11:31:04 +01:00
Martin Carlberg
920daf7fde
Fixed: Marked function 'method_getTypes' as deprecated
2015-11-10 11:30:29 +01:00
Martin Carlberg
ad1a15faaa
New: Added runtime functions 'method_copyReturnType' and 'method_copyArgumentType'.
2015-11-10 11:29:52 +01:00
Martin Carlberg
9fc892f723
Fixed: Check if ’OBJJ_COMPILER_FLAGS’ exists in a correct way
2015-10-26 14:47:51 +01:00
Martin Carlberg
3844b88f7e
Fixed: The browser can’t promise when a javascript block will execute so compiler flags can be set after the files are compiled. This implementation works all the time.
2015-10-09 16:06:53 +02:00
Martin Carlberg
e45e31d223
Fixed: Introduce ’jake install-inline’ task to generate the cappuccino framework with objj_msgSend function inlined. Also introduced options in ’index-debug.html’ templates to allow inline of objj_msgSend function when compiling in browser.
2015-10-06 13:34:28 +02:00
Martin Carlberg
101261ca63
Fixed: Optionally inline objj_msgSend function. Generate faster code for Array and Dictionary Literals.
2015-10-06 13:30:09 +02:00
Martin Carlberg
4ba9a19b5c
Fixed: Speed improvements in objj_msgSend and objj_msgSendSuper functions. More efficient implementation of objj_method.
2015-10-06 13:27:10 +02:00
Roland Schwingel
dd4de9822f
Adjustment for (a)sync request with timeout to work on IE and other browsers
2015-09-23 19:16:20 +02:00
Roland Schwingel
55181cec8c
Set timeout in XHR requests AFTER they are opened to get them to work with IE
2015-09-17 14:45:35 +02:00
Alexandre Wilhelm
bb9408b5d0
Merge branch 'master' into Localization
2015-08-27 15:16:12 -07:00
Roland Schwingel
1eb12d4fa0
Damned... corrected formatting
2015-08-20 14:57:28 +02:00
Roland Schwingel
2ab9186259
Fix Chrome warning when using synchronous XHR requests
2015-08-20 14:52:19 +02:00
Roland Schwingel
65b3e9f8c1
Merge remote-tracking branch 'upstream/master'
2015-08-18 14:10:21 +02:00
Alexandre Wilhelm
acb9931fe6
Fixed: not possible to to synchrone request and set a timeout
2015-08-14 13:28:27 -07:00
Alexandre Wilhelm
d4b035ac1a
Fixed: style in CPURLConnection.j CPURLRequest.j CFHTTPRequest.js
2015-08-14 12:40:22 -07:00
Alexandre Wilhelm
bd0bd2e087
New: added timeout and cache feature in CPURLRequest
...
This PR adds the possibility to set the timeout and the cache policy of a CPURLRequest.
For that, there are new things in the framework :
- CFHTTPRequest has now the functions setTimeout(), getTimeout() and isTimeoutRequest
- CPURLRequest has now the methods +requestWithURL:cachePolicy:timeoutInterval: and -initWithURL:cachePolicy:timeoutInterval:
- CPURLConnection does not call the delegate didReceiveData: when a request has timed out. I will call the delegate didFailWithError:
- Cache is now possible for a CPURLRequest, only CPURLRequestReturnCacheDataElseLoad, CPURLRequestReturnCacheDataDontLoad and CPURLRequestReloadIgnoringLocalCacheData are supported. By default CPURLRequestReloadIgnoringLocalCacheData.
- Default timeout has been set to 60sec as in cocoa.
- A request is considered as timeout when there isn't any response (text/xml/type) and when the status of the response is 0.
2015-08-13 17:08:59 -07:00
Roland Schwingel
73e13fee37
Fix for startup on IE10. Reformatted patch
2015-08-11 09:03:21 +02:00
Roland Schwingel
205c1ac3b6
Fix startup on IE10
2015-08-10 17:08:28 +02:00
Alexandre Wilhelm
d358f0d27b
Fixed: xml format now has the key sourcePath instead of path for the command objj and objj2objcskeleton
2015-06-08 10:30:54 -07:00
Alexandre Wilhelm
128a243166
Merge branch 'master' of https://github.com/cappuccino/cappuccino
2015-06-01 13:53:56 -07:00
Alexandre Wilhelm
0e41365020
Fixed: some objj errors were not print in xml when necessary
2015-06-01 13:53:41 -07:00
Alexandre Wilhelm
5bba109873
Merge pull request #2346 from primalmotion/fix-popen
...
FIXED: Closes all streams after a OS.popen()
2015-05-27 15:25:36 -07:00
Alexandre Wilhelm
5095620005
Fixed: changed --xml-output-format to --xml in objj
2015-05-27 11:46:43 -07:00
Alexandre Wilhelm
abcdc0875c
Fixed: added option -x for objj and changed xml-output-format to --xml
2015-05-27 11:12:36 -07:00
Alexandre Wilhelm
3102c545ce
Fixed: used url path (/Users/..) instead of absoluth path (file://Users/..) in the xml output format of objj
2015-05-25 13:26:37 -07:00
Alexandre Wilhelm
f232b327c0
Fixed: issue with options --objj-include-paths and --multifiles. Long options were not taken
2015-05-25 11:38:16 -07:00
Alexandre Wilhelm
204ed1f257
New: added the option --xml-output-format for the command objj
...
Previously, it was not possible to specify the desired output format of the command objj.
Now we can have either the default format or a xml format if --xml-output-format is added.
2015-05-25 11:20:55 -07:00
Antoine Mercadal
c603326e58
Use try/finally to ensure popen streams are always closed
2015-05-09 10:22:13 -07:00
Antoine Mercadal
bcb1630f20
FIXED: Closes all streams after a OS.popen()
...
Previously, when popen was called, the 3 streams (stdin, stderr and stdourt) where never closed. This was the reason of the having an impossible number of open files.
This patch ensure all streams are closed after using them. This means that the ulimit trick is no more necessary
2015-04-23 16:46:01 -07:00
Alexandre Wilhelm
c5b250236f
New: support of base localization and nib localization
2015-04-21 18:26:28 -07:00
Alexandre Wilhelm
68374e7c62
Fixed: fix minor issue with methods CPLocalizedStringFromTable and comment
2015-04-21 10:54:09 -07:00
Alexandre Wilhelm
2db7ce8da1
New: added the methods CPLocalizedString CPLocalizedStringFromTable CPCopyLocalizedStringFromTableInBundle
2015-04-20 18:53:51 -07:00
Alexandre Wilhelm
b1b3966d41
Fixed compiling issue in CFBundle.js
2015-04-17 20:40:48 -07:00
Alexandre Wilhelm
c171a37f24
New: first work on localization
2015-04-17 17:16:11 -07:00