Martin Carlberg
a1e178d0d7
Merge remote-tracking branch 'origin/narwhal'
2024-05-24 12:18:28 +02:00
daboe01
3a164c8080
fixed: CPString did not have containsString:
2023-03-05 21:37:50 +01:00
cacaodev and Martin Carlberg
7857f92f19
FIXED: CPLikePredicateOperatorType was matching substrings
...
Fixes #2955
2022-11-21 16:33:56 +01:00
cacaodev and GitHub
9361e5d401
FIXED: CPLikePredicateOperatorType was matching substrings
...
Fixes #2955
2022-11-10 10:49:01 +01:00
Martin Carlberg and GitHub
ad1862a253
Update CPURLConnection.j
...
New: Async method for requesting data
2022-10-06 11:24:56 +02:00
cacaodev and GitHub
462a18930b
Revert "New: Support to compile deep structured project in the web browser"
2022-03-17 21:07:16 +01:00
Martin Carlberg
d9791673df
Fixed: Make sure we can build on Linux. Tested on Ubuntu 20.04
2021-11-07 13:41:01 +00:00
Martin Carlberg
9e6f1e0dc3
Fixed: Timezone abbreviation was not working with the latest changes on all setups.
...
This is still not 100% but looks like it works a little bit better
2021-09-21 15:38:51 +02:00
Martin Carlberg
24bf09b70c
Fixed: Abbreviation for a timezone is not handled in JavaScript. This changes makes it better but not perfect.
2021-09-21 10:30:26 +02:00
Martin Carlberg
119e11cfe2
Fixed: Allow 'await' for loading a bundle with the method 'loadWithDelegate:'
2021-09-20 09:19:05 +02:00
Martin Carlberg
55bcfacf3b
Fixed: Moved common function used in Jakefiles that was declared all over the place to a file.js in @objj/utils. Also some general cleanup.
2021-08-25 09:32:58 +02:00
Alfred Wärnsäter
2ecea40fdc
lots of Node fixes
2021-08-19 10:56:13 +02:00
Martin Carlberg
afd23e3457
Fixed: Added file translation dictionary for the Foundation framework
...
This allows the Foundation framework to be compiled while loading the Application in the Browser
2021-08-17 16:47:06 +02:00
Alfred Wärnsäter
e71f650650
removal of print and debugger statements + added some more color
2021-07-30 15:35:57 +02:00
Alfred Wärnsäter
0a2aae3bc2
some restructuring of the repo, trying to fix problems when building with node
2021-06-30 10:13:52 +02:00
Alfred Wärnsäter
c238ebeef4
major changes, very much WIP, experimenting with async
2021-06-22 14:04:31 +02:00
Alfred Wärnsäter
206eddbdbd
further removal of narwhal APIs
2021-06-16 15:43:19 +02:00
bedalton and GitHub
6eab438778
Fixed: CPKeyedArchiver method call does not match selector tested ( #2904 )
...
Delegate methods described on lines 76 and 85 are not the selectors
checked on lines 305 and line 302, but are the methods actually called
on the delegate on lines 195 and 225. This fix updates the method
selectors checked on the delegate, to match those defined and called
within the CPKeyedArchiver class.
Fixes #2679
2020-10-02 13:52:42 +02:00
daboe01 and GitHub
7e3c4074e4
New: replaceOccurrencesOfString:(CPString)target withString:(CPString… ( #2900 )
...
New: replaceOccurrencesOfString:(CPString)target withString:(CPString)replacement options:(int)options range:(CSRange)searchRange
2020-06-30 20:52:34 +02:00
Martin Carlberg and GitHub
1c866931f3
New: The compiler will now create warnings for variables that are never read ( #2871 )
...
This new warning adds a lot of warnings in the Cappuccino frameworks. I have turned off
the warning in the Jakefiles when compiling most of the Cappuccino frameworks. But it is
on as default for any user projects.
So there is also a new feature to turn off/on warnings as a compiler flag.
These flags are (all flags are on as default):
-Wunused-but-set-variable Warning when a local variable is never read.
-Wshadow-ivar Warning when a local variable is shadowing an instance variable for the class.
-Wcreate-global-inside-function-or-method Warning when creating a global variable inside a function or method.
-Wunknown-class-or-global Warning when a class or global variable is not known.
-Wunknown-ivar-type Warning when the type for an instance variable is not known.
To turn off a flag add a 'no-' prefix. Example: -Wno-unused-but-set-variable
For an example how to use it in a Jakefile please look at the Jakefiles in this commit.
2020-02-21 14:29:48 +01:00
Martin Carlberg
f5937a6fad
Fixed: CPComparisonPredicate does never evaluate to true for a predicate like 'something != nil'
...
An example:
var array = @[ @{@"Name": @"1"},
@{@"Name": @"2", @"approveTime": @"Now"}
];
var predicate = [CPPredicate predicateWithFormat:@"approveTime != nil"];
CPLog(@"result: %@", [array filteredArrayUsingPredicate:predicate]); // result: <empty array>
If I run this in Cappuccino I get an empty array
If I run it in Cocoa on a Mac I get:
result: (
{
Name = 2;
approveTime = Now;
}
2020-01-31 14:24:29 +01:00
Martin Carlberg and GitHub
7dc77ed609
Fixed: Make sure we handle undefined when testing for nil values ( #2862 )
2020-01-31 13:43:58 +01:00
cacaodev and GitHub
0c706cfed2
Merge pull request #2866 from mrcarlberg/cpset_enumerator_use_stop_variable
...
Fixed: CPSet enumerateObjectsUsingBlock: will honor the stop variable
2019-12-16 11:27:37 +01:00
Martin Carlberg and GitHub
fed0703ecf
New: Allow lazy loading control for combined observer key paths ( #2854 )
...
This pull request adds a kvoValueForKey: method used by _CPKVOForwardingObserver for getting values.
The default action is to just return the valueForKey value.
Override this method if you want any other behavior.
It can be used to just return nil if you are implementing a lazy load behavior on a class.
It can allow a combined binding to observe this object without trigger any lazy loading.
2019-11-28 09:38:55 +01:00
Martin Carlberg
dad49354aa
Fixed: CPSet enumerateObjectsUsingBlock: will honor the stop variable
...
Test case also added.
Deprecated the very old behaviour that the block could return YES to abort the enumeration.
2019-10-18 13:01:04 +02:00
daboe01 and Martin Carlberg
7bd8bf02f6
Fixed: Typo in function call to _CPDecimalSetZero and made the test case work properly ( #2820 )
2019-06-13 16:09:17 +02:00
daboe01
2ffa174900
fixed: wrong return type of forward::
2019-04-08 14:42:23 +02:00
cacaodev and Martin Carlberg
f02d0ab1dd
STYLE: refactoring using CPCharacterSet ( #2762 )
2018-08-22 09:18:21 +02:00
Rosch
1fce0ee551
fix CPDateformatter for german dates
2018-07-08 09:15:58 +02:00
daboe01 and Martin Carlberg
2ac60684fa
Fixed: CPDateFormatter was agnostic for the German language ( #2724 )
2018-06-08 14:00:25 +02:00
Alexandre Wilhelm and GitHub
7c2518f027
Merge pull request #2659 from bedalton/formatting-add-semi-colons-cpusernotification
...
Formatting: add semi colons CPUserNotification.j
2018-04-08 11:25:04 -07:00
Alexandre Wilhelm and GitHub
752f9d2694
Merge pull request #2661 from bedalton/fix-cpproxy-respondstoselector
...
Fix: CPProxy respondsToSelector incorrect parameter name
2018-04-08 11:24:42 -07:00
Alexandre Wilhelm and GitHub
0a180f9e20
Merge pull request #2662 from bedalton/format-add-semi-colon-cpdateformatter
...
Format: add semi-colons to CPDateFormatter.j
2018-04-08 11:24:21 -07:00
Alexandre Wilhelm and GitHub
6fff2e1c2f
Merge pull request #2663 from bedalton/formatting-add-semi-colon-cparray-kvo
...
Formatting: add semi-colon CPArray+KVO.j
2018-04-08 11:24:07 -07:00
Alexandre Wilhelm and GitHub
4266900d2e
Merge pull request #2664 from bedalton/formatting-add-semi-colon-cpdictionary
...
Formatting: add semi-colon to CPDictionary.j
2018-04-08 11:23:47 -07:00
Alexandre Wilhelm and GitHub
a2a1d84bc0
Merge pull request #2665 from bedalton/formatting-add-semi-colon-cpindexset
...
Formatting: add semi-colons to CPIndexSet
2018-04-08 11:23:39 -07:00
Alexandre Wilhelm and GitHub
7648c562f1
Merge pull request #2666 from bedalton/formatting-add-semi-colon-cpnotificationqueue
...
Formatting: add semi-colons to CPNotificationQueue.j
2018-04-08 11:23:21 -07:00
Daniel
c8d01549ba
Formatting: add semi-colon to CPUserNotification.j
2018-04-07 16:13:20 -07:00
daniel
23af4505dd
Fix: CPProxy uses incorrect variable name in method call
...
On line 51 of CPProxy, `class_getInstanceMethod` is called with the
variable `aSelector`, but this variable does not exist in the
context, but a variable named `selector` does. This fix changes the
method parameter from `selector` to `aSelector` to match the parameter
used within the method.
2018-04-07 15:37:19 -07:00
daniel
53cb6a5b3e
Formatting: add missing semi-colons to CPNotificationQueue.j
2018-04-07 15:29:27 -07:00
daniel
765384ace1
Formatting: add semi-colons to CPIndexSet.j
...
Variable assignments terminated in commas instead of semi-colons
2018-04-07 15:26:52 -07:00
daniel
d39e3e2f69
Formatting: add semi-colon to CPDictionary.j
2018-04-07 15:22:36 -07:00
daniel
d75124066e
Formatting: add semi-colons to CPDateFormatter.j
2018-04-07 15:20:08 -07:00
daniel
f4400876da
Formatting: add semi-colon to CPArray+KVO.j
2018-04-07 14:10:03 -07:00
daniel
c222c5127f
Formatting: add semi-colon to _CPPredicate.j
2018-04-07 14:07:43 -07:00
Martin Carlberg and GitHub
cdd00e0bd4
Merge pull request #2595 from daboe01/cpnumber-unarchiving-fix
...
Fixed: initWithCoder: called unimplemented method on the coder
2018-03-05 11:04:41 +01:00
Martin Carlberg and GitHub
d8945e53ba
Merge pull request #2593 from daboe01/CPCoder--remove-bitrot
...
Fixed: unused and broken code removed from CPCoder
2018-03-05 10:43:41 +01:00
daboe01
104f8603b9
fixed: initWithCoder: called unimplemented method on the coder
2018-03-04 21:27:08 +01:00
daboe01
ae575a19a0
fixed: unused broken code removed from CPCoder
2018-03-04 11:55:34 +01:00
cacaodev and GitHub
5f94d0a5c2
Typo: remove extra semi-colon
2018-02-28 15:33:16 +01:00