Andrew Hankinson
49cb446f8b
New: Initial commit of CFNetworkErrors file
...
This commit adds constants for CFURL Errors to enable cross-compatibility with the Cocoa CF and CPURL error reporting functions
2014-10-31 17:15:52 -04:00
Andrew Hankinson
82c32d7dee
New: Implementation of the CoreFoundation CFError
...
This commit adds an implementation of the CoreFoundation CFError classes and functions.
2014-10-31 17:14:55 -04:00
Antoine Mercadal
73a2823d0b
Merge pull request #2213 from mrcarlberg/error_cannot_find_protocol_declaration
...
Fixed: When the compiler can't find a protocol in a class declaration
2014-09-30 16:56:36 -07:00
Martin Carlberg
2f7681f881
Fixed: No line information was provided for compiler errors on the first line of a file
2014-09-26 13:28:44 +02:00
Martin Carlberg
13fe318110
Fixed: When the compiler can't find a protocol in a class declaration it now gives an understandable error.
...
This fixes #2212
2014-09-16 20:13:42 +02:00
Antoine Mercadal
a5e39d1db3
Revert "Merge pull request #2158 from mrbannon/master"
...
This reverts commit 228a95f776 , reversing
changes made to cf93b72edd .
2014-09-04 18:17:15 -07:00
Antoine Mercadal
371b660b33
Merge pull request #2072 from mrcarlberg/fix_accessors_in_categories_fails
...
Fixed: Ivars with accessors in a Category failed with duplicate ivar error
2014-09-04 14:02:53 -07:00
Ryan Bannon
d629a13499
Fix: https://github.com/cappuccino/cappuccino/issues/2157
...
Possible bug in XMLHTTPRequest. Thanks to hmsimmonds for locating the following:
http://connect.microsoft.com/IE/feedback/details/795580/ie11-xmlhttprequest-incorrectly-throws-invalidstateerror-when-setting-responsetype
https://github.com/enyo/dropzone/issues/179
In short, setting the "withCredentials" flag must be done after open().
2014-07-23 16:58:02 -04:00
Antoine Mercadal
09f100c0c2
Merge branch 'fix-cfhttp-cpurl-2141-2138' of https://github.com/ahankinson/cappuccino into ahankinson-fix-cfhttp-cpurl-2141-2138
2014-07-09 15:45:28 -07:00
Alexander Ljungberg
8d7594c96a
Formatting and clean up.
...
Refs #2103 .
2014-06-22 16:07:17 +01:00
Alexander Ljungberg
ea3adc44fd
Fixed: objj_msgSend_reset not resetting with fast objj_msgSend.
...
Refs #2103 .
2014-06-22 14:29:40 +01:00
Andrew Hankinson
33317782ea
Fixed: CFHTTPRequest now accepts the withCredentials property
...
From the original PR:
Currently, CPURLConnection has no way to access the withCredential
property of an XMLHTTPRequest, meaning we can't utilize cross-domain
calls using CORS in our applications.
This commit adds the withCredentials property to CFHTTPRequest.
Refs #1296
2014-06-21 20:32:28 -04:00
Martin Carlberg
e8e10d4224
Fixed: If receiver in the function objj_msgSend is a class we don't need to check if it is nil as a class can never be nil without the load has already failed.
2014-04-15 13:52:41 +02:00
Martin Carlberg
81e4b6b37b
Fixed: If the function 'eval' is called it might have altered 'self' and from here on we check if 'self' is null before 'objj_msgSend' is called with 'self' as receiver
2014-04-14 16:37:21 +02:00
Martin Carlberg
b1507952df
Fixed: Checks if 'self' is nil only if self has a chance to be changed when sending messages
2014-04-11 15:41:32 +02:00
Martin Carlberg
c23292db8a
Fixed: Optimized msgSend code when receiver is an identifier.
...
If the receiver is an identifier and not an ivar that needs 'self.' infront there is no need to assign it to a temporary variable. Also if the identifier is 'self' there we assume it is not nil.
2014-04-10 18:27:19 +02:00
Martin Carlberg
0efb7e67c9
Fixed: Use new fast msgSend function for some foundation classes
2014-04-10 11:03:49 +02:00
Martin Carlberg
93e7133076
Fixed: Got decorators working with the fast msgSend
2014-04-09 16:52:14 +02:00
Martin Carlberg
2411edd461
Fixed: Faster objj_msgSend
...
Conflicts:
Objective-J/Runtime.js
2014-04-08 20:51:18 +02:00
Alexander Ljungberg
1dbd41a746
Fixed: error in Internet Explorer if Info.plist was served with wrong content type.
...
Without this fix, in Internet Explorer the plist parser would only receive an empty XML document for the main Info.plist (and any other such loaded documents) if the server did not provide the content type "text/xml".
This fix parses the XML correctly even if there is no such content type.
Fixes #2051 .
2014-03-06 14:16:00 +00:00
Alexander Ljungberg
8c43f4f628
Fixed: theoretical error while skipping whitespace in XML plists.
...
This fix ensures the PLIST_FIRST_CHILD() code gets to run both statements in the XML parsing while loop.
There's no obvious way to trigger an error due to this bug, but better correct than wrong.
Refs #2051 .
2014-03-06 14:13:22 +00:00
Martin Carlberg
ee668df440
Fixed: Ivars with accessors in a Category failed with duplicate ivar error
2014-02-21 12:27:52 +01:00
Alexander Ljungberg
c1f538ece5
Formatting: whitespace.
...
Refs #1974 .
2013-11-28 18:39:01 +00:00
Martin Carlberg
8419001810
Merge branch 'master' of https://github.com/cappuccino/cappuccino into protocol
2013-11-22 14:23:52 +01:00
Alexander Ljungberg
d3ab2a0f3d
New: "//site.com/x" style URL support in CPURL and CFURL.
...
With this feature, CFURL and CPURL can now correctly transform a relative scheme URL starting with a double-slash.
For example, + CPURL URLWithString:@"//a.se/a" relativeToURL:@"ftp://b.se/c" would represent an absolute URL of "ftp://a.se/a".
2013-10-29 15:03:37 +00:00
Martin Carlberg
f0e2daf6c7
Fixed: Add get and set instance methods to class definition when ivar has accessors.
...
This caused 'Method is not implemented' warnings when a class implemented protocol declared set and get methods as 'accessors' on an ivar.
2013-09-12 21:54:57 +02:00
Martin Carlberg
9f0d8c54e4
Fixed: Uses current protocolDefs when compiling accessors
...
This caused 'null is not an object' type error when class declaration with 'accessors' declared ivars was in the same file as the protocol it was conforming to.
2013-09-12 21:47:15 +02:00
Alexander Ljungberg
b20d711922
Merge pull request #1984 from mrcarlberg/if-empty-statement
...
Fixed: Compiler now generates correct empty statement after 'if (a);'
2013-09-09 15:53:21 +01:00
Martin Carlberg
23fb618596
Fixed: Compiler now generates correct empty statement after 'if (a);'
...
Earlier the compiler generated the 'if' without the last ';' when a empty statement is used, with sometimes devastating result. The same if an empty statement was after the 'else'.
I have also added a test case for some different empty statement senarios.
2013-09-09 16:38:38 +02:00
Martin Carlberg
ba0604320e
Fixed: Should be 'objj_allocateProtocol' and 'objj_registerProtocol' not 'objc_allocateProtocol' and 'objc_registerProtocol'
2013-08-31 15:33:32 +02:00
Martin Carlberg
c979a69e6b
Fixed: Compiler can now handle only @action/IBAction declared return type when checking for 'Conflicting return type' method declaration.
...
Also made the warning message point to correct return type token when type is not declared.
2013-08-28 11:23:55 +02:00
Martin Carlberg
0e4ad998d8
Fixed: Remove all protocols in objj_resetRegisterClasses
2013-08-22 16:54:19 +02:00
Martin Carlberg
9eebb0a64b
Fixed: Pass correct node to error message when finding duplicated protocol
2013-08-22 16:53:22 +02:00
Martin Carlberg
0afe21dd29
Fixed: Copy method descriptions to an array instead of JSObject
2013-08-22 12:37:29 +02:00
Martin Carlberg
cfc682c165
Fixed: Protocol methods is now registered in the correct place
2013-08-22 12:36:29 +02:00
Martin Carlberg
c326168e83
Fixed: Protocol definition in compiler was not created correct from protocol definition in the runtime
2013-08-22 12:35:16 +02:00
Martin Carlberg
b8b96a17d7
Fixed: Check if global function exists in correct way
2013-08-22 12:34:14 +02:00
Aparajita Fishman
fa86c54fff
Fixed: missing semicolon.
2013-08-15 10:21:45 -04:00
Martin Carlberg
0b75876283
Fixed: Moved incorrect positioned parenthesis to handle '@required' token
2013-08-12 22:44:35 +02:00
Martin Carlberg
beec0c5293
Fixed: Handle '@required' before any method declarations
2013-08-12 22:43:03 +02:00
Martin Carlberg
672ed6ed0c
Fixed: Handle protocol declaration with no method declarations
2013-08-12 22:41:36 +02:00
Martin Carlberg
f74312dc42
Fixed: Allow type on return or parameter type to be a class if superclass or protocol declared it as 'id'
2013-08-12 16:55:35 +02:00
Martin Carlberg
2e216d7e9a
Fixed: Make default return type to 'void' for '@action' or 'IBAction' marked method.
2013-08-12 16:53:19 +02:00
Martin Carlberg
29d7833fcb
Fixed: Renamed local variable that used reserved variable name ('arguments')
2013-08-12 16:52:07 +02:00
Martin Carlberg
4eba639c73
Fixed: Allow some tokens to be identifiers
2013-08-12 16:50:34 +02:00
Martin Carlberg
361f421816
Fixed: Added 'id' as a token and enforce that protocol can only follow 'id' as a Objective-J type
2013-08-12 16:49:39 +02:00
Martin Carlberg
7c2c2a3114
Fixed: Allow protocols in interface declaration
2013-08-12 09:40:20 +02:00
Martin Carlberg
d38125db13
New: Added Objective-J protocol support
...
The Objective-J parser and compiler now handles protocol syntax. The Objective-J runtime has new functions to handle protocols. The method 'conformsToProtocol:' has been added to CPObject as an instance and a class method.
2013-08-09 19:02:45 +02:00
Aparajita Fishman
86e5c15e3c
Formatting, optimizations.
2013-08-09 08:28:37 -04:00
Aparajita Fishman
3c9435ed21
Fixed: FileRequest was broken under CommonJS.
...
The progress event was being used even under CommonJS, which broke file loading and thus jake deploy.
2013-08-02 19:05:57 -04:00