Deploying to gh-pages from @ cappuccino/cappuccino@acf410776d 🚀

This commit is contained in:
daboe01 committed 2026-08-26 18:47:53 +00:00
1 parent c8b958ae66
commit 67b51bb5ad
10 files changed
+199 -199

No files matched your search

+1 -1
View File
@@ -14,6 +14,6 @@
function main(args, namedArgs)
{
CPLogRegister(CPLogDefault);
CPLogRegister(CPLogDefault);
CPApplicationMain(args, namedArgs);
}
+5 -5
View File
@@ -62,9 +62,9 @@
var theWindow = [[CPWindow alloc] initWithContentRect:CGRectMakeZero() styleMask:CPBorderlessBridgeWindowMask];
[theWindow setAcceptsMouseMovedEvents:YES];
var contentView = [theWindow contentView],
x = 20,
y = 20,
yInc = 25,
x = 20,
y = 20,
yInc = 25,
imageCursorTester = [[CursorTester alloc] initWithText:@"Image cursor"
origin:CGPointMake(x, y)
cursor:[[CPCursor alloc] initWithImage:[[CPImage alloc] initWithContentsOfFile:[[CPBundle mainBundle] resourcePath] + @"spinner.gif"]
@@ -83,7 +83,7 @@
cursor:[CPCursor pointingHandCursor]],
resizeDownCursorTester = [[CursorTester alloc] initWithText:@"Resize down cursor"
origin:CGPointMake(x, y+=yInc)
cursor:[CPCursor resizeDownCursor]],
cursor:[CPCursor resizeDownCursor]],
resizeUpCursorTester = [[CursorTester alloc] initWithText:@"Resize up cursor"
origin:CGPointMake(x, y+=yInc)
cursor:[CPCursor resizeUpCursor]],
@@ -119,7 +119,7 @@
cursor:[CPCursor closedHandCursor]],
disappearingItemCursorTester = [[CursorTester alloc] initWithText:@"Disappearing item cursor"
origin:CGPointMake(x, y+=yInc)
cursor:[CPCursor disappearingItemCursor]],
cursor:[CPCursor disappearingItemCursor]],
verticalTextCursorTester = [[CursorTester alloc] initWithText:@"Vertical text cursor"
origin:CGPointMake(x, y+=yInc)
cursor:[CPCursor IBeamCursorForVerticalLayout]];
+3 -3
View File
@@ -106,7 +106,7 @@ var CPRuleEditorCustomControlClass = @"CPRuleEditorCustomControlClass";
{
var compound_type = [criterion objectForKey:CPRuleEditorPredicateCompoundType];
if (compound_type != nil)
[predicatePartsForCriterion setObject:compound_type forKey:CPRuleEditorPredicateCompoundType];
[predicatePartsForCriterion setObject:compound_type forKey:CPRuleEditorPredicateCompoundType];
return predicatePartsForCriterion;
}
@@ -131,8 +131,8 @@ var CPRuleEditorCustomControlClass = @"CPRuleEditorCustomControlClass";
predicatePart = [CPExpression expressionForConstantValue:transformedValue];
}
else if ([key isEqualToString:CPRuleEditorPredicateOperatorType] ||
[key isEqualToString:CPRuleEditorPredicateCustomSelector] ||
[key isEqualToString:CPRuleEditorPredicateOptions])
[key isEqualToString:CPRuleEditorPredicateCustomSelector] ||
[key isEqualToString:CPRuleEditorPredicateOptions])
{
var value = [criterion objectForKey:key];
if (value != nil) predicatePart = value;
+26 -26
View File
@@ -13,10 +13,10 @@
*/
@implementation AppController : CPObject
{
CPButton unhideHtmlButton;
CPButton unhideUrlButton;
CPWebView webview;
CPWebView webview2;
CPButton unhideHtmlButton;
CPButton unhideUrlButton;
CPWebView webview;
CPWebView webview2;
}
- (void)applicationDidFinishLaunching:(CPNotification)aNotification
@@ -24,31 +24,31 @@
var theWindow = [[CPWindow alloc] initWithContentRect:CGRectMakeZero() styleMask:CPBorderlessBridgeWindowMask],
contentView = [theWindow contentView];
unhideHtmlButton = [[CPButton alloc] initWithFrame:CGRectMakeZero()];
[unhideHtmlButton setTitle:"Unhide (loadHTMLString)"];
[unhideHtmlButton sizeToFit];
[unhideHtmlButton setTarget:self];
[unhideHtmlButton setAction:@selector(unhideHtmlButtonClicked:)];
[contentView addSubview:unhideHtmlButton];
unhideHtmlButton = [[CPButton alloc] initWithFrame:CGRectMakeZero()];
[unhideHtmlButton setTitle:"Unhide (loadHTMLString)"];
[unhideHtmlButton sizeToFit];
[unhideHtmlButton setTarget:self];
[unhideHtmlButton setAction:@selector(unhideHtmlButtonClicked:)];
[contentView addSubview:unhideHtmlButton];
unhideUrlButton = [[CPButton alloc] initWithFrame:CGRectMake([contentView frameSize].width / 2 + 10, 0, 0, 0)];
[unhideUrlButton setTitle:"Unhide (URL)"];
[unhideUrlButton sizeToFit];
[unhideUrlButton setTarget:self];
[unhideUrlButton setAction:@selector(unhideUrlButtonClicked:)];
[contentView addSubview:unhideUrlButton];
unhideUrlButton = [[CPButton alloc] initWithFrame:CGRectMake([contentView frameSize].width / 2 + 10, 0, 0, 0)];
[unhideUrlButton setTitle:"Unhide (URL)"];
[unhideUrlButton sizeToFit];
[unhideUrlButton setTarget:self];
[unhideUrlButton setAction:@selector(unhideUrlButtonClicked:)];
[contentView addSubview:unhideUrlButton];
webview = [[CPWebView alloc] initWithFrame:CGRectMake(0, 40, [contentView frameSize].width / 2 - 10, [contentView frameSize].height - 40)];
[webview setAutoresizingMask:CPViewWidthSizable|CPViewHeightSizable];
[webview setHidden:YES];
[webview loadHTMLString:"<html><body><font size='8'> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</font></body></html>"];
[contentView addSubview:webview];
[webview setAutoresizingMask:CPViewWidthSizable|CPViewHeightSizable];
[webview setHidden:YES];
[webview loadHTMLString:"<html><body><font size='8'> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</font></body></html>"];
[contentView addSubview:webview];
webview2 = [[CPWebView alloc] initWithFrame:CGRectMake([contentView frameSize].width / 2 + 10, 40, [contentView frameSize].width / 2 - 10, [contentView frameSize].height - 40)];
[webview2 setAutoresizingMask:CPViewWidthSizable|CPViewHeightSizable];
[webview2 setHidden:YES];
[webview2 setMainFrameURL:"http://www.cappuccino-project.org"];
[contentView addSubview:webview2];
[webview2 setAutoresizingMask:CPViewWidthSizable|CPViewHeightSizable];
[webview2 setHidden:YES];
[webview2 setMainFrameURL:"http://www.cappuccino-project.org"];
[contentView addSubview:webview2];
[theWindow orderFront:self];
@@ -58,12 +58,12 @@
- (void)unhideHtmlButtonClicked:(id)sender
{
[webview setHidden:NO];
[webview setHidden:NO];
}
- (void)unhideUrlButtonClicked:(id)sender
{
[webview2 setHidden:NO];
[webview2 setHidden:NO];
}
@end
+2 -2
View File
@@ -15,14 +15,14 @@ END_EXPECTED
@implementation MySuperclass : CPObject
{
int myIvar;
int myIvar;
}
@end
@implementation MySubclass : MySuperclass
{
int myIvar;
int myIvar;
}
@end
@@ -36,7 +36,7 @@
- (IBAction)bringWindow2Front:(id)sender
{
[window2 orderFront:self];
[window2 orderFront:self];
}
@end
+5 -5
View File
@@ -12,9 +12,9 @@
@implementation AppController : CPObject
{
@outlet CPWindow theWindow;
@outlet CPButton clearButton;
@outlet CPButton escButton;
@outlet CPTextField wasPressedLabel;
@outlet CPButton clearButton;
@outlet CPButton escButton;
@outlet CPTextField wasPressedLabel;
}
- (void)applicationDidFinishLaunching:(CPNotification)aNotification
@@ -33,11 +33,11 @@
}
- (@action)clearButtonPressed:(id)sender {
[wasPressedLabel setStringValue:@"No"];
[wasPressedLabel setStringValue:@"No"];
}
- (@action)escButtonPressed:(id)sender {
[wasPressedLabel setStringValue:@"Yes"];
[wasPressedLabel setStringValue:@"Yes"];
}
@end
@@ -38,7 +38,7 @@
- (IBAction)closeSheet:(idf)sender
{
[CPApp endSheet:sheetWindow];
[CPApp endSheet:sheetWindow];
}
@end
+8 -8
View File
@@ -63,8 +63,8 @@ var rootItems = [CPArray arrayWithObject:[CPDictionary dictionaryWithObjectsAndK
- (void)_saveSmartFolders
{
var defaults = [CPUserDefaults standardUserDefaults];
[defaults setObject:smartFolders forKey:@"SmartFolders"];
var defaults = [CPUserDefaults standardUserDefaults];
[defaults setObject:smartFolders forKey:@"SmartFolders"];
}
- (void)awakeFromCib
@@ -204,7 +204,7 @@ var rootItems = [CPArray arrayWithObject:[CPDictionary dictionaryWithObjectsAndK
- (IBAction)closeSheet:(id)sender
{
if ([sender tag] == CPOKButton)
[predicateEditor reloadPredicate];
[predicateEditor reloadPredicate];
[CPApp endSheet:predicateSheet returnCode:[sender tag]];
}
@@ -218,13 +218,13 @@ var rootItems = [CPArray arrayWithObject:[CPDictionary dictionaryWithObjectsAndK
var predicate = [predicateEditor objectValue];
[self setFilterPredicate:predicate];
[folder setObject:predicate forKey:@"predicate"];
[folder setObject:name forKey:@"name"];
[folder setObject:predicate forKey:@"predicate"];
[folder setObject:name forKey:@"name"];
[folder setObject:[[tableController arrangedObjects] count] forKey:@"count"];
[smartOutlineView reloadData];
[smartOutlineView reloadData];
[self saveSmartFolders];
[aSheet orderOut:nil];
[self saveSmartFolders];
[aSheet orderOut:nil];
}
}
// convenience method
+147 -147
View File
@@ -1,147 +1,147 @@
1787764895541|ArrayController1|
1787764895555|ArrayControllerInitialSelectionTest|
1787764895569|ArrayControllerRemovingFirstTest|
1787764895583|AttachedSheet|
1787764895597|AttachedSheet2|
1787764895611|Bindings|
1787764895625|CGCanvasContext|
1787764895639|CGPath|
1787764895652|CPAlertTest|
1787764895666|CPAnimatablePropertyContainerTest|
1787764895680|CPAnimationContextTest|
1787764895694|CPAnimationTest|
1787764895708|CPBinder-echo-bug|
1787764895722|CPBoxCibTest|
1787764895736|CPBoxTest|
1787764895750|CPBrowserTest|
1787764895764|CPButtonBarTest|
1787764895778|CPButtonKeyEquivalentDefaultTest|
1787764895792|CPButtonTest|
1787764895805|CPByteCountFormatter|
1787764895819|CPCollectionViewNibTest|
1787764895833|CPColor-CPImage-description|
1787764895847|CPColorWellBindings|
1787764895861|CPComboBoxTest|
1787764895875|CPControlPerformClickExceptionTest|
1787764895889|CPControlSize|
1787764895902|CPCursor|
1787764895916|CPDateFormatterTest|
1787764895930|CPDatePickerTest|
1787764895944|CPDictionaryControllerTest|
1787764895957|CPDocumentControllerTest|
1787764895971|CPFormatterTest|
1787764895985|CPGraphicsTest|
1787764895999|CPImageAndTextViewImageScaling|
1787764896013|CPImageViewAlignmentScaling|
1787764896026|CPImageViewTest|
1787764896040|CPImageViewbindingsTest|
1787764896054|CPLevelIndicator|
1787764896068|CPLocalizationTest|
1787764896082|CPLogTest|
1787764896095|CPMarkdownParser|
1787764896109|CPMenuCALayerTest|
1787764896123|CPMenuEnabledBindingsTest|
1787764896137|CPMenuKeyEquivalents|
1787764896151|CPMenuRemoveAllTest|
1787764896164|CPMenuSubmenuPlacementConstraints|
1787764896178|CPMenuTest|
1787764896192|CPOutlineViewCibTest|
1787764896206|CPOutlineViewTest|
1787764896220|CPOutlineViewViewBasedCibTest|
1787764896233|CPPanelTest|
1787764896247|CPPlatformWindow|
1787764896261|CPPlattformWindowMinSize|
1787764896274|CPPopUpButtonBindings|
1787764896288|CPPopUpButtonTest|
1787764896302|CPPopover|
1787764896316|CPPredicateEditorCibTest|
1787764896330|CPProgressIndicator|
1787764896344|CPPropertyListSerializationTest|
1787764896358|CPRadioBindings|
1787764896373|CPRuleEditorCibTest|
1787764896387|CPRuleEditorTestI8N|
1787764896403|CPScrollView|
1787764896422|CPScrollView2|
1787764896437|CPSearchField|
1787764896451|CPSearchFieldPredicateBinding|
1787764896465|CPSegmentedControlBindings|
1787764896479|CPSegmentedControlTest|
1787764896493|CPSoundTest|
1787764896507|CPSplitViewDivider|
1787764896520|CPSplitViewTest|
1787764896534|CPStackViewTest|
1787764896548|CPStepperBindings|
1787764896562|CPStepperNibTest|
1787764896575|CPTabView2|
1787764896589|CPTabViewBindings|
1787764896603|CPTabViewNib|
1787764896616|CPTableViewGroupRows|
1787764896630|CPTextField|
1787764896644|CPTextFieldEditingStyleTest|
1787764896658|CPTextFieldHeightTest|
1787764896672|CPTextFieldMovementsTest|
1787764896686|CPTextFieldMultiline|
1787764896700|CPTextView|
1787764896714|CPTextViewCibTest|
1787764896728|CPTextViewDelegateAndNotifications|
1787764896742|CPTimeZone|
1787764896756|CPTokenFieldTest|
1787764896769|CPToolTip|
1787764896783|CPToolbarTest|
1787764896797|CPTreeControllerTest|
1787764896811|CPURLConnectionAsyncTest|
1787764896825|CPURLConnectionSynchronousTest|
1787764896839|CPUserDefaults|
1787764896853|CPUserDefaultsControllerTest|
1787764896866|CPUserNotificationTest|
1787764896880|CPViewController|
1787764896894|CPVisualEffectViewTest|
1787764896908|CPWebViewTest|
1787764896922|CPWebViewTest2|
1787764896936|CPWindowLiveResizeTest|
1787764896949|CPWindowMovableTest|
1787764896963|CPWindowResizeStyle|
1787764896977|ChildWindows|
1787764896990|CompilationTests|
1787764897004|ContinuouslyUpdatesValueBinding|
1787764897018|CopyAndPaste|
1787764897032|CrossOriginTest|
1787764897045|FF4096Test|
1787764897059|FontEnhancementTest|
1787764897073|FontMetricsExplorer|
1787764897087|KeyEquivalents|
1787764897100|KeyViewLoopTest|
1787764897114|KeyWindowInTheBackgroundActivation|
1787764897128|LayoutTest|
1787764897142|LoadTimeTest|
1787764897156|LongBindings|
1787764897170|MobileTest|
1787764897183|MultipleValueBindings|
1787764897197|NSBoxTest|
1787764897211|NSBrowserTest|
1787764897225|NewTextFieldBezel|
1787764897239|Nib2CibAlignment|
1787764897253|Nib2CibBaselineAlignementTest|
1787764897267|Nib2CibSubviewsOrderTest|
1787764897281|NibAppRemixed|
1787764897295|PatternFillTest|
1787764897309|PlatformWindows|
1787764897323|PopUpButtonEscTest|
1787764897336|ScalingTest|
1787764897350|ScalingTest2|
1787764897364|ScrollviewTheming|
1787764897378|SheetWindowOrderFrontIssue|
1787764897392|SimpleBindings2|
1787764897406|SmartFoldersDemo|
1787764897420|TableTest|
1787764897434|ThemeBrowser|
1787764897448|ThemeKitchenSink|
1787764897462|TrackingArea|
1787764897476|UndoRedoWithMenuUpdate|
1787764897490|UserlandNSTest|
1787764897504|layoutEphemeralSubviewTest|
1787764897519|loadDynamicFrameworks|
1787764897533|performKeyEquivalentTest|
1787764897547|predicateWithFormat|
1787764897560|resignFirstResponder-CPControlTextDidEndEditing|
1787764897574|sizeToFitFix|
1787770064911|ArrayController1|
1787770064925|ArrayControllerInitialSelectionTest|
1787770064939|ArrayControllerRemovingFirstTest|
1787770064953|AttachedSheet|
1787770064967|AttachedSheet2|
1787770064980|Bindings|
1787770064994|CGCanvasContext|
1787770065007|CGPath|
1787770065021|CPAlertTest|
1787770065035|CPAnimatablePropertyContainerTest|
1787770065048|CPAnimationContextTest|
1787770065062|CPAnimationTest|
1787770065075|CPBinder-echo-bug|
1787770065089|CPBoxCibTest|
1787770065103|CPBoxTest|
1787770065117|CPBrowserTest|
1787770065131|CPButtonBarTest|
1787770065144|CPButtonKeyEquivalentDefaultTest|
1787770065158|CPButtonTest|
1787770065172|CPByteCountFormatter|
1787770065185|CPCollectionViewNibTest|
1787770065199|CPColor-CPImage-description|
1787770065213|CPColorWellBindings|
1787770065226|CPComboBoxTest|
1787770065240|CPControlPerformClickExceptionTest|
1787770065254|CPControlSize|
1787770065268|CPCursor|
1787770065281|CPDateFormatterTest|
1787770065295|CPDatePickerTest|
1787770065309|CPDictionaryControllerTest|
1787770065322|CPDocumentControllerTest|
1787770065336|CPFormatterTest|
1787770065350|CPGraphicsTest|
1787770065363|CPImageAndTextViewImageScaling|
1787770065377|CPImageViewAlignmentScaling|
1787770065390|CPImageViewTest|
1787770065404|CPImageViewbindingsTest|
1787770065418|CPLevelIndicator|
1787770065431|CPLocalizationTest|
1787770065445|CPLogTest|
1787770065459|CPMarkdownParser|
1787770065472|CPMenuCALayerTest|
1787770065486|CPMenuEnabledBindingsTest|
1787770065500|CPMenuKeyEquivalents|
1787770065513|CPMenuRemoveAllTest|
1787770065527|CPMenuSubmenuPlacementConstraints|
1787770065541|CPMenuTest|
1787770065554|CPOutlineViewCibTest|
1787770065568|CPOutlineViewTest|
1787770065581|CPOutlineViewViewBasedCibTest|
1787770065595|CPPanelTest|
1787770065609|CPPlatformWindow|
1787770065622|CPPlattformWindowMinSize|
1787770065636|CPPopUpButtonBindings|
1787770065649|CPPopUpButtonTest|
1787770065663|CPPopover|
1787770065677|CPPredicateEditorCibTest|
1787770065690|CPProgressIndicator|
1787770065704|CPPropertyListSerializationTest|
1787770065717|CPRadioBindings|
1787770065731|CPRuleEditorCibTest|
1787770065745|CPRuleEditorTestI8N|
1787770065758|CPScrollView|
1787770065772|CPScrollView2|
1787770065785|CPSearchField|
1787770065799|CPSearchFieldPredicateBinding|
1787770065813|CPSegmentedControlBindings|
1787770065826|CPSegmentedControlTest|
1787770065840|CPSoundTest|
1787770065854|CPSplitViewDivider|
1787770065867|CPSplitViewTest|
1787770065881|CPStackViewTest|
1787770065894|CPStepperBindings|
1787770065908|CPStepperNibTest|
1787770065922|CPTabView2|
1787770065935|CPTabViewBindings|
1787770065949|CPTabViewNib|
1787770065963|CPTableViewGroupRows|
1787770065976|CPTextField|
1787770065990|CPTextFieldEditingStyleTest|
1787770066003|CPTextFieldHeightTest|
1787770066017|CPTextFieldMovementsTest|
1787770066031|CPTextFieldMultiline|
1787770066044|CPTextView|
1787770066058|CPTextViewCibTest|
1787770066072|CPTextViewDelegateAndNotifications|
1787770066085|CPTimeZone|
1787770066099|CPTokenFieldTest|
1787770066113|CPToolTip|
1787770066126|CPToolbarTest|
1787770066140|CPTreeControllerTest|
1787770066154|CPURLConnectionAsyncTest|
1787770066168|CPURLConnectionSynchronousTest|
1787770066181|CPUserDefaults|
1787770066195|CPUserDefaultsControllerTest|
1787770066208|CPUserNotificationTest|
1787770066222|CPViewController|
1787770066236|CPVisualEffectViewTest|
1787770066249|CPWebViewTest|
1787770066263|CPWebViewTest2|
1787770066277|CPWindowLiveResizeTest|
1787770066291|CPWindowMovableTest|
1787770066304|CPWindowResizeStyle|
1787770066318|ChildWindows|
1787770066331|CompilationTests|
1787770066345|ContinuouslyUpdatesValueBinding|
1787770066359|CopyAndPaste|
1787770066372|CrossOriginTest|
1787770066386|FF4096Test|
1787770066399|FontEnhancementTest|
1787770066413|FontMetricsExplorer|
1787770066427|KeyEquivalents|
1787770066440|KeyViewLoopTest|
1787770066454|KeyWindowInTheBackgroundActivation|
1787770066468|LayoutTest|
1787770066481|LoadTimeTest|
1787770066495|LongBindings|
1787770066508|MobileTest|
1787770066522|MultipleValueBindings|
1787770066536|NSBoxTest|
1787770066549|NSBrowserTest|
1787770066563|NewTextFieldBezel|
1787770066577|Nib2CibAlignment|
1787770066591|Nib2CibBaselineAlignementTest|
1787770066604|Nib2CibSubviewsOrderTest|
1787770066618|NibAppRemixed|
1787770066632|PatternFillTest|
1787770066645|PlatformWindows|
1787770066659|PopUpButtonEscTest|
1787770066673|ScalingTest|
1787770066686|ScalingTest2|
1787770066700|ScrollviewTheming|
1787770066713|SheetWindowOrderFrontIssue|
1787770066727|SimpleBindings2|
1787770066741|SmartFoldersDemo|
1787770066754|TableTest|
1787770066768|ThemeBrowser|
1787770066782|ThemeKitchenSink|
1787770066795|TrackingArea|
1787770066809|UndoRedoWithMenuUpdate|
1787770066822|UserlandNSTest|
1787770066836|layoutEphemeralSubviewTest|
1787770066850|loadDynamicFrameworks|
1787770066863|performKeyEquivalentTest|
1787770066877|predicateWithFormat|
1787770066890|resignFirstResponder-CPControlTextDidEndEditing|
1787770066904|sizeToFitFix|