From 2ca437c214774888898151a5845cfd2194fef65c Mon Sep 17 00:00:00 2001 From: enquora Date: Wed, 5 Aug 2026 00:13:02 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20cappucci?= =?UTF-8?q?no/cappuccino@d7e5c2ccacf93572693e0a3b7f5dd6adeaf86ab8=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Foundation/ObjJ.environment/Foundation.sj | 35 +-- Resources/recipes.txt | 294 +++++++++--------- 2 files changed, 161 insertions(+), 168 deletions(-) diff --git a/Frameworks/Foundation/ObjJ.environment/Foundation.sj b/Frameworks/Foundation/ObjJ.environment/Foundation.sj index f135b947d..6ec6c032c 100644 --- a/Frameworks/Foundation/ObjJ.environment/Foundation.sj +++ b/Frameworks/Foundation/ObjJ.environment/Foundation.sj @@ -11440,7 +11440,7 @@ class_addMethods(meta_class, [new objj_method(sel_getUid("null"), function $CPNu ,["CPNull"])]); } -p;10;CPNumber.jt;9742;@STATIC;1.0;i;13;CPException.ji;8;CPNull.ji;10;CPObject.ji;15;CPObjJRuntime.jt;9658;objj_executeFile("CPException.j", YES);objj_executeFile("CPNull.j", YES);objj_executeFile("CPObject.j", YES);objj_executeFile("CPObjJRuntime.j", YES);var CPNumberUIDs = new CFMutableDictionary(); +p;10;CPNumber.jt;9260;@STATIC;1.0;i;13;CPException.ji;8;CPNull.ji;10;CPObject.ji;15;CPObjJRuntime.jt;9176;objj_executeFile("CPException.j", YES);objj_executeFile("CPNull.j", YES);objj_executeFile("CPObject.j", YES);objj_executeFile("CPObjJRuntime.j", YES);const CPNumberUIDs = new CFMutableDictionary(); {var the_class = objj_allocateClassPair(CPObject, "CPNumber"), meta_class = the_class.isa;objj_registerClassPair(the_class); @@ -11510,7 +11510,7 @@ class_addMethods(the_class, [new objj_method(sel_getUid("initWithBool:"), functi ,["id","unsigned short"]), new objj_method(sel_getUid("UID"), function $CPNumber__UID(self, _cmd) { - var UID = CPNumberUIDs.valueForKey(self); + let UID = CPNumberUIDs.valueForKey(self); if (!UID) { UID = objj_generateObjectUID(); @@ -11521,24 +11521,17 @@ class_addMethods(the_class, [new objj_method(sel_getUid("initWithBool:"), functi ,["CPString"]), new objj_method(sel_getUid("boolValue"), function $CPNumber__boolValue(self, _cmd) { - return self ? true : false; + return !!self; } -,["BOOL"]), new objj_method(sel_getUid("charValue"), function $CPNumber__charValue(self, _cmd) -{ - return String.fromCharCode(self); -} - -,["char"]), new objj_method(sel_getUid("decimalValue"), function $CPNumber__decimalValue(self, _cmd) +,["BOOL"]), new objj_method(sel_getUid("decimalValue"), function $CPNumber__decimalValue(self, _cmd) { throw new Error("decimalValue: NOT YET IMPLEMENTED"); } ,["CPDecimal"]), new objj_method(sel_getUid("descriptionWithLocale:"), function $CPNumber__descriptionWithLocale_(self, _cmd, aDictionary) { - if (!aDictionary) - return self.toString(); - throw new Error("descriptionWithLocale: NOT YET IMPLEMENTED"); + return self.toString(); } ,["CPString","CPDictionary"]), new objj_method(sel_getUid("description"), function $CPNumber__description(self, _cmd) @@ -11562,27 +11555,27 @@ class_addMethods(the_class, [new objj_method(sel_getUid("initWithBool:"), functi ,["float"]), new objj_method(sel_getUid("intValue"), function $CPNumber__intValue(self, _cmd) { - return self >= 0 ? Math.floor(self) : Math.ceil(self); + return Math.trunc(self); } ,["int"]), new objj_method(sel_getUid("integerValue"), function $CPNumber__integerValue(self, _cmd) { - return self >= 0 ? Math.floor(self) : Math.ceil(self); + return Math.trunc(self); } ,["int"]), new objj_method(sel_getUid("longLongValue"), function $CPNumber__longLongValue(self, _cmd) { - return self >= 0 ? Math.floor(self) : Math.ceil(self); + return Math.trunc(self); } ,["long long"]), new objj_method(sel_getUid("longValue"), function $CPNumber__longValue(self, _cmd) { - return self >= 0 ? Math.floor(self) : Math.ceil(self); + return Math.trunc(self); } ,["long"]), new objj_method(sel_getUid("shortValue"), function $CPNumber__shortValue(self, _cmd) { - return self >= 0 ? Math.floor(self) : Math.ceil(self); + return Math.trunc(self); } ,["short"]), new objj_method(sel_getUid("stringValue"), function $CPNumber__stringValue(self, _cmd) @@ -11597,17 +11590,17 @@ class_addMethods(the_class, [new objj_method(sel_getUid("initWithBool:"), functi ,["unsigned char"]), new objj_method(sel_getUid("unsignedIntValue"), function $CPNumber__unsignedIntValue(self, _cmd) { - return self >= 0 ? Math.floor(self) : Math.ceil(self); + return Math.trunc(self); } ,["unsigned int"]), new objj_method(sel_getUid("unsignedLongValue"), function $CPNumber__unsignedLongValue(self, _cmd) { - return self >= 0 ? Math.floor(self) : Math.ceil(self); + return Math.trunc(self); } ,["unsigned long"]), new objj_method(sel_getUid("unsignedShortValue"), function $CPNumber__unsignedShortValue(self, _cmd) { - return self >= 0 ? Math.floor(self) : Math.ceil(self); + return Math.trunc(self); } ,["unsigned short"]), new objj_method(sel_getUid("compare:"), function $CPNumber__compare_(self, _cmd, aNumber) @@ -11629,7 +11622,7 @@ class_addMethods(the_class, [new objj_method(sel_getUid("initWithBool:"), functi ,["BOOL","CPNumber"])]); class_addMethods(meta_class, [new objj_method(sel_getUid("alloc"), function $CPNumber__alloc(self, _cmd) { - var result = new Number(); + let result = new Number(); result.isa = (self.isa.method_msgSend["class"] || _objj_forward)(self, "class"); return result; } diff --git a/Resources/recipes.txt b/Resources/recipes.txt index de35321cb..8747713a2 100644 --- a/Resources/recipes.txt +++ b/Resources/recipes.txt @@ -1,147 +1,147 @@ -1785887607914|ArrayController1| -1785887607928|ArrayControllerInitialSelectionTest| -1785887607941|ArrayControllerRemovingFirstTest| -1785887607955|AttachedSheet| -1785887607968|AttachedSheet2| -1785887607981|Bindings| -1785887607995|CGCanvasContext| -1785887608008|CGPath| -1785887608022|CPAlertTest| -1785887608035|CPAnimatablePropertyContainerTest| -1785887608048|CPAnimationContextTest| -1785887608062|CPAnimationTest| -1785887608075|CPBinder-echo-bug| -1785887608088|CPBoxCibTest| -1785887608102|CPBoxTest| -1785887608115|CPBrowserTest| -1785887608128|CPButtonBarTest| -1785887608142|CPButtonKeyEquivalentDefaultTest| -1785887608155|CPButtonTest| -1785887608169|CPByteCountFormatter| -1785887608182|CPCollectionViewNibTest| -1785887608196|CPColor-CPImage-description| -1785887608209|CPColorWellBindings| -1785887608222|CPComboBoxTest| -1785887608236|CPControlPerformClickExceptionTest| -1785887608249|CPControlSize| -1785887608263|CPCursor| -1785887608276|CPDateFormatterTest| -1785887608289|CPDatePickerTest| -1785887608303|CPDictionaryControllerTest| -1785887608316|CPDocumentControllerTest| -1785887608330|CPFormatterTest| -1785887608343|CPGraphicsTest| -1785887608357|CPImageAndTextViewImageScaling| -1785887608370|CPImageViewAlignmentScaling| -1785887608384|CPImageViewTest| -1785887608398|CPImageViewbindingsTest| -1785887608412|CPLevelIndicator| -1785887608425|CPLocalizationTest| -1785887608439|CPLogTest| -1785887608452|CPMarkdownParser| -1785887608466|CPMenuCALayerTest| -1785887608479|CPMenuEnabledBindingsTest| -1785887608493|CPMenuKeyEquivalents| -1785887608507|CPMenuRemoveAllTest| -1785887608520|CPMenuSubmenuPlacementConstraints| -1785887608533|CPMenuTest| -1785887608547|CPOutlineViewCibTest| -1785887608560|CPOutlineViewTest| -1785887608574|CPOutlineViewViewBasedCibTest| -1785887608587|CPPanelTest| -1785887608600|CPPlatformWindow| -1785887608614|CPPlattformWindowMinSize| -1785887608627|CPPopUpButtonBindings| -1785887608641|CPPopUpButtonTest| -1785887608654|CPPopover| -1785887608668|CPPredicateEditorCibTest| -1785887608681|CPProgressIndicator| -1785887608694|CPPropertyListSerializationTest| -1785887608708|CPRadioBindings| -1785887608721|CPRuleEditorCibTest| -1785887608734|CPRuleEditorTestI8N| -1785887608748|CPScrollView| -1785887608761|CPScrollView2| -1785887608774|CPSearchField| -1785887608788|CPSearchFieldPredicateBinding| -1785887608801|CPSegmentedControlBindings| -1785887608814|CPSegmentedControlTest| -1785887608828|CPSoundTest| -1785887608841|CPSplitViewDivider| -1785887608854|CPSplitViewTest| -1785887608868|CPStackViewTest| -1785887608881|CPStepperBindings| -1785887608894|CPStepperNibTest| -1785887608908|CPTabView2| -1785887608921|CPTabViewBindings| -1785887608935|CPTabViewNib| -1785887608949|CPTableViewGroupRows| -1785887608962|CPTextField| -1785887608975|CPTextFieldEditingStyleTest| -1785887608989|CPTextFieldHeightTest| -1785887609002|CPTextFieldMovementsTest| -1785887609016|CPTextFieldMultiline| -1785887609029|CPTextView| -1785887609042|CPTextViewCibTest| -1785887609056|CPTextViewDelegateAndNotifications| -1785887609069|CPTimeZone| -1785887609083|CPTokenFieldTest| -1785887609096|CPToolTip| -1785887609109|CPToolbarTest| -1785887609123|CPTreeControllerTest| -1785887609136|CPURLConnectionAsyncTest| -1785887609149|CPURLConnectionSynchronousTest| -1785887609163|CPUserDefaults| -1785887609176|CPUserDefaultsControllerTest| -1785887609189|CPUserNotificationTest| -1785887609203|CPViewController| -1785887609216|CPVisualEffectViewTest| -1785887609230|CPWebViewTest| -1785887609243|CPWebViewTest2| -1785887609256|CPWindowLiveResizeTest| -1785887609270|CPWindowMovableTest| -1785887609283|CPWindowResizeStyle| -1785887609297|ChildWindows| -1785887609310|CompilationTests| -1785887609323|ContinuouslyUpdatesValueBinding| -1785887609337|CopyAndPaste| -1785887609350|CrossOriginTest| -1785887609364|FF4096Test| -1785887609377|FontEnhancementTest| -1785887609390|FontMetricsExplorer| -1785887609404|KeyEquivalents| -1785887609417|KeyViewLoopTest| -1785887609431|KeyWindowInTheBackgroundActivation| -1785887609444|LayoutTest| -1785887609458|LoadTimeTest| -1785887609471|LongBindings| -1785887609485|MobileTest| -1785887609498|MultipleValueBindings| -1785887609512|NSBoxTest| -1785887609525|NSBrowserTest| -1785887609539|NewTextFieldBezel| -1785887609552|Nib2CibAlignment| -1785887609566|Nib2CibBaselineAlignementTest| -1785887609579|Nib2CibSubviewsOrderTest| -1785887609593|NibAppRemixed| -1785887609606|PatternFillTest| -1785887609620|PlatformWindows| -1785887609633|PopUpButtonEscTest| -1785887609646|ScalingTest| -1785887609660|ScalingTest2| -1785887609673|ScrollviewTheming| -1785887609687|SheetWindowOrderFrontIssue| -1785887609700|SimpleBindings2| -1785887609714|SmartFoldersDemo| -1785887609727|TableTest| -1785887609741|ThemeBrowser| -1785887609754|ThemeKitchenSink| -1785887609768|TrackingArea| -1785887609781|UndoRedoWithMenuUpdate| -1785887609794|UserlandNSTest| -1785887609808|layoutEphemeralSubviewTest| -1785887609821|loadDynamicFrameworks| -1785887609835|performKeyEquivalentTest| -1785887609848|predicateWithFormat| -1785887609862|resignFirstResponder-CPControlTextDidEndEditing| -1785887609875|sizeToFitFix| +1785888777577|ArrayController1| +1785888777591|ArrayControllerInitialSelectionTest| +1785888777605|ArrayControllerRemovingFirstTest| +1785888777619|AttachedSheet| +1785888777633|AttachedSheet2| +1785888777647|Bindings| +1785888777661|CGCanvasContext| +1785888777675|CGPath| +1785888777689|CPAlertTest| +1785888777703|CPAnimatablePropertyContainerTest| +1785888777716|CPAnimationContextTest| +1785888777730|CPAnimationTest| +1785888777744|CPBinder-echo-bug| +1785888777758|CPBoxCibTest| +1785888777772|CPBoxTest| +1785888777787|CPBrowserTest| +1785888777801|CPButtonBarTest| +1785888777815|CPButtonKeyEquivalentDefaultTest| +1785888777829|CPButtonTest| +1785888777843|CPByteCountFormatter| +1785888777858|CPCollectionViewNibTest| +1785888777872|CPColor-CPImage-description| +1785888777885|CPColorWellBindings| +1785888777899|CPComboBoxTest| +1785888777913|CPControlPerformClickExceptionTest| +1785888777927|CPControlSize| +1785888777941|CPCursor| +1785888777954|CPDateFormatterTest| +1785888777968|CPDatePickerTest| +1785888777982|CPDictionaryControllerTest| +1785888777996|CPDocumentControllerTest| +1785888778009|CPFormatterTest| +1785888778023|CPGraphicsTest| +1785888778037|CPImageAndTextViewImageScaling| +1785888778051|CPImageViewAlignmentScaling| +1785888778065|CPImageViewTest| +1785888778078|CPImageViewbindingsTest| +1785888778092|CPLevelIndicator| +1785888778106|CPLocalizationTest| +1785888778120|CPLogTest| +1785888778134|CPMarkdownParser| +1785888778147|CPMenuCALayerTest| +1785888778161|CPMenuEnabledBindingsTest| +1785888778175|CPMenuKeyEquivalents| +1785888778189|CPMenuRemoveAllTest| +1785888778203|CPMenuSubmenuPlacementConstraints| +1785888778217|CPMenuTest| +1785888778231|CPOutlineViewCibTest| +1785888778245|CPOutlineViewTest| +1785888778259|CPOutlineViewViewBasedCibTest| +1785888778273|CPPanelTest| +1785888778287|CPPlatformWindow| +1785888778301|CPPlattformWindowMinSize| +1785888778315|CPPopUpButtonBindings| +1785888778329|CPPopUpButtonTest| +1785888778343|CPPopover| +1785888778357|CPPredicateEditorCibTest| +1785888778371|CPProgressIndicator| +1785888778385|CPPropertyListSerializationTest| +1785888778399|CPRadioBindings| +1785888778413|CPRuleEditorCibTest| +1785888778427|CPRuleEditorTestI8N| +1785888778440|CPScrollView| +1785888778454|CPScrollView2| +1785888778468|CPSearchField| +1785888778482|CPSearchFieldPredicateBinding| +1785888778496|CPSegmentedControlBindings| +1785888778509|CPSegmentedControlTest| +1785888778523|CPSoundTest| +1785888778537|CPSplitViewDivider| +1785888778551|CPSplitViewTest| +1785888778565|CPStackViewTest| +1785888778579|CPStepperBindings| +1785888778593|CPStepperNibTest| +1785888778607|CPTabView2| +1785888778621|CPTabViewBindings| +1785888778635|CPTabViewNib| +1785888778649|CPTableViewGroupRows| +1785888778663|CPTextField| +1785888778677|CPTextFieldEditingStyleTest| +1785888778691|CPTextFieldHeightTest| +1785888778705|CPTextFieldMovementsTest| +1785888778719|CPTextFieldMultiline| +1785888778733|CPTextView| +1785888778747|CPTextViewCibTest| +1785888778761|CPTextViewDelegateAndNotifications| +1785888778775|CPTimeZone| +1785888778789|CPTokenFieldTest| +1785888778803|CPToolTip| +1785888778816|CPToolbarTest| +1785888778830|CPTreeControllerTest| +1785888778844|CPURLConnectionAsyncTest| +1785888778858|CPURLConnectionSynchronousTest| +1785888778872|CPUserDefaults| +1785888778886|CPUserDefaultsControllerTest| +1785888778899|CPUserNotificationTest| +1785888778913|CPViewController| +1785888778927|CPVisualEffectViewTest| +1785888778941|CPWebViewTest| +1785888778955|CPWebViewTest2| +1785888778968|CPWindowLiveResizeTest| +1785888778982|CPWindowMovableTest| +1785888778996|CPWindowResizeStyle| +1785888779010|ChildWindows| +1785888779024|CompilationTests| +1785888779038|ContinuouslyUpdatesValueBinding| +1785888779052|CopyAndPaste| +1785888779065|CrossOriginTest| +1785888779079|FF4096Test| +1785888779093|FontEnhancementTest| +1785888779107|FontMetricsExplorer| +1785888779120|KeyEquivalents| +1785888779134|KeyViewLoopTest| +1785888779148|KeyWindowInTheBackgroundActivation| +1785888779162|LayoutTest| +1785888779176|LoadTimeTest| +1785888779190|LongBindings| +1785888779203|MobileTest| +1785888779217|MultipleValueBindings| +1785888779231|NSBoxTest| +1785888779245|NSBrowserTest| +1785888779259|NewTextFieldBezel| +1785888779273|Nib2CibAlignment| +1785888779286|Nib2CibBaselineAlignementTest| +1785888779300|Nib2CibSubviewsOrderTest| +1785888779314|NibAppRemixed| +1785888779328|PatternFillTest| +1785888779341|PlatformWindows| +1785888779355|PopUpButtonEscTest| +1785888779369|ScalingTest| +1785888779383|ScalingTest2| +1785888779397|ScrollviewTheming| +1785888779411|SheetWindowOrderFrontIssue| +1785888779424|SimpleBindings2| +1785888779438|SmartFoldersDemo| +1785888779452|TableTest| +1785888779466|ThemeBrowser| +1785888779480|ThemeKitchenSink| +1785888779493|TrackingArea| +1785888779507|UndoRedoWithMenuUpdate| +1785888779521|UserlandNSTest| +1785888779535|layoutEphemeralSubviewTest| +1785888779549|loadDynamicFrameworks| +1785888779563|performKeyEquivalentTest| +1785888779576|predicateWithFormat| +1785888779590|resignFirstResponder-CPControlTextDidEndEditing| +1785888779604|sizeToFitFix|