Tests: Rename the SmartFoldersDemo manual test app to People

The app will become the integration app for CPSplitViewController in a
navigator, content and detail layout. The rename comes first so that
the later changes show only real differences.

The folder, file headers, bundle name and identifier, Jakefile product
name, page title, drag types, defaults keys and autosave names now use
People. Because the defaults keys change, the app starts with its
sample data and default toolbar.
This commit is contained in:
David Richardson committed 2026-11-23 11:46:19 -06:00
1 parent b5d5889166
commit 1e33f40222
39 files changed
+41 -41

No files matched your search

+3 -3
View File
@@ -24,9 +24,9 @@
/*
Applications draw their own content on table and outline rows. A source list
draws a count badge beside an item, for example, as SmartFoldersDemo does in its
BadgedOutlineView. That content is correct only if the table keeps redrawing it
as a person uses the table.
draws a count badge beside an item, for example, as the People manual test app
does in its BadgedOutlineView. That content is correct only if the table keeps
redrawing it as a person uses the table.
These tests take such a view through ordinary use: selecting, scrolling, resizing
a column, expanding an item, reloading. After each action, the table must ask for
@@ -1,6 +1,6 @@
/*
* AppController.j
* SmartFoldersDemo
* People
*
* Non-document-based Cappuccino integration test / demo, built entirely in
* code (no cib/xib). The application delegate only creates the model, the
@@ -5,13 +5,13 @@
<key>CPBundlePackageType</key>
<string>APPL</string>
<key>CPBundleIdentifier</key>
<string>com.yourorganization.SmartFoldersDemo</string>
<string>com.yourorganization.People</string>
<key>CPDefaultTheme</key>
<string>Aristo3</string>
<key>CPApplicationDelegateClass</key>
<string>AppController</string>
<key>CPBundleName</key>
<string>SmartFolderDemo</string>
<string>People</string>
<key>CPPrincipalClass</key>
<string>CPApplication</string>
</dict>
@@ -1,6 +1,6 @@
/*
* Jakefile
* SmartFoldersTest
* People
*
* Created by You on November 25, 2010.
* Copyright 2010, Your Company All rights reserved.
@@ -15,17 +15,17 @@ var ENV = process.env,
app = CAPPUCCINO.Jake.applicationtask.app,
configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug";
app ("SmartFoldersTest", function(task)
app ("People", function(task)
{
task.setBuildIntermediatesPath(path.join("Build", "SmartFoldersTest.build", configuration));
task.setBuildIntermediatesPath(path.join("Build", "People.build", configuration));
task.setBuildPath(path.join("Build", configuration));
task.setProductName("SmartFoldersTest");
task.setProductName("People");
task.setIdentifier("com.yourcompany.");
task.setVersion("1.0");
task.setAuthor("Your Company");
task.setEmail("feedback @nospam@ yourcompany.com");
task.setSummary("SmartFoldersTest");
task.setSummary("People");
task.setSources((new FileList("**/*.j")).exclude(path.join("Build", "**")));
task.setResources(new FileList("Resources/**"));
task.setIndexFilePath("index.html");
@@ -38,7 +38,7 @@ app ("SmartFoldersTest", function(task)
task.setCompilerFlags("-O");
});
task ("default", ["SmartFoldersTest"], function()
task ("default", ["People"], function()
{
printResults(configuration);
});
@@ -59,37 +59,37 @@ task ("release", function()
task ("run", ["debug"], function()
{
cp.execSync(["open", path.join("Build", "Debug", "SmartFoldersTest", "index.html")].join(" "), { stdio: "inherit" });
cp.execSync(["open", path.join("Build", "Debug", "People", "index.html")].join(" "), { stdio: "inherit" });
});
task ("run-release", ["release"], function()
{
cp.execSync(["open", path.join("Build", "Release", "SmartFoldersTest", "index.html")].join(" "), { stdio: "inherit" });
cp.execSync(["open", path.join("Build", "Release", "People", "index.html")].join(" "), { stdio: "inherit" });
});
task ("deploy", ["release"], function()
{
fs.mkdirSync(path.join("Build", "Deployment", "SmartFoldersTest"), { recursive: true });
cp.execSync(["press", "-f", path.join("Build", "Release", "SmartFoldersTest"), path.join("Build", "Deployment", "SmartFoldersTest")].join(" "), { stdio: "inherit" });
fs.mkdirSync(path.join("Build", "Deployment", "People"), { recursive: true });
cp.execSync(["press", "-f", path.join("Build", "Release", "People"), path.join("Build", "Deployment", "People")].join(" "), { stdio: "inherit" });
printResults("Deployment")
});
task ("desktop", ["release"], function()
{
fs.mkdirSync(path.join("Build", "Desktop", "SmartFoldersTest"), { recursive: true });
require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "SmartFoldersTest"), path.join("Build", "Desktop", "SmartFoldersTest", "SmartFoldersTest.app"));
fs.mkdirSync(path.join("Build", "Desktop", "People"), { recursive: true });
require("@objj/nativehost").buildNativeHost(path.join("Build", "Release", "People"), path.join("Build", "Desktop", "People", "People.app"));
printResults("Desktop")
});
task ("run-desktop", ["desktop"], function()
{
cp.execSync([path.join("Build", "Desktop", "SmartFoldersTest", "SmartFoldersTest.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" });
cp.execSync([path.join("Build", "Desktop", "People", "People.app", "Contents", "MacOS", "NativeHost"), "-i"].join(" "), { stdio: "inherit" });
});
function printResults(configuration)
{
console.log("----------------------------");
console.log(configuration+" app built at path: "+path.join("Build", configuration, "SmartFoldersTest"));
console.log(configuration+" app built at path: "+path.join("Build", configuration, "People"));
console.log("----------------------------");
}
@@ -1,6 +1,6 @@
/*
* Library.j
* SmartFoldersDemo
* People
*
* The application model. Holds all people plus the three source list
* sections (Library, Groups, Smart Folders), persists itself to
@@ -23,13 +23,13 @@ LibraryChangeKindKey = @"kind";
LibraryChangeStructural = @"structural";
LibraryChangePersonEdited = @"personEdited";
PeopleDragType = @"SmartFoldersDemoPeopleDragType";
SourceItemDragType = @"SmartFoldersDemoSourceItemDragType";
PeopleDragType = @"PeoplePeopleDragType";
SourceItemDragType = @"PeopleSourceItemDragType";
LibraryDepartments = [@"Engineering", @"Design", @"Marketing", @"Sales", @"Support", @"Finance", @"Legal"];
LibraryCities = [@"Berlin", @"Hamburg", @"Munich", @"Zürich", @"Vienna", @"Paris", @"London", @"Lisbon", @"New York", @"San Francisco", @"Tokyo"];
var LibraryDefaultsKey = @"SmartFoldersDemo.Library.v1",
var LibraryDefaultsKey = @"People.Library.v1",
ObservedPersonKeys = [@"firstName", @"lastName", @"email", @"department", @"city", @"birthDate", @"salary", @"isManager"],
SourceItemUIDCounter = 0;
@@ -1,6 +1,6 @@
/*
* MainWindowController.j
* SmartFoldersDemo
* People
*
* Owns the full-platform (bridge) main window. Instantiates the sidebar and
* people view controllers and loads their views into a vertical CPSplitView.
@@ -109,7 +109,7 @@ var ToolbarSidebarIdentifier = @"SidebarItem",
[contentView addSubview:_splitView];
[_splitView setButtonBar:[_sourceListController buttonBar] forDividerAtIndex:0];
[_splitView setAutosaveName:@"SmartFoldersDemo.MainSplit"];
[_splitView setAutosaveName:@"People.MainSplit"];
}
- (void)_buildToolbar
@@ -119,10 +119,10 @@ var ToolbarSidebarIdentifier = @"SidebarItem",
[_searchField setTarget:self];
[_searchField setAction:@selector(searchFieldDidChange:)];
[_searchField setSendsSearchStringImmediately:YES];
[_searchField setRecentsAutosaveName:@"SmartFoldersDemo.RecentSearches"];
[_searchField setRecentsAutosaveName:@"People.RecentSearches"];
[_searchField setSearchMenuTemplate:[_searchField defaultSearchMenuTemplate]];
var toolbar = [[CPToolbar alloc] initWithIdentifier:@"SmartFoldersDemoToolbar"];
var toolbar = [[CPToolbar alloc] initWithIdentifier:@"PeopleToolbar"];
[toolbar setAllowsUserCustomization:YES];
[toolbar setAutosavesConfiguration:YES];
[toolbar setDelegate:self];
@@ -1,6 +1,6 @@
/*
* NameSheetController.j
* SmartFoldersDemo
* People
*
* Minimal reusable sheet asking for a name (new group, rename group).
* Exercises a second, independent CPWindowController-owned sheet, first
@@ -1,6 +1,6 @@
/*
* PeopleViewController.j
* SmartFoldersDemo
* People
*
* Right hand side of the main split view. Exercises:
* - CPArrayController with content, filterPredicate, sortDescriptors and
@@ -90,7 +90,7 @@
[view addSubview:_splitView];
[self setView:view];
[_splitView setAutosaveName:@"SmartFoldersDemo.PeopleSplit"];
[_splitView setAutosaveName:@"People.PeopleSplit"];
[self _updateStatus];
}
@@ -156,7 +156,7 @@
[_tableView setDraggingSourceOperationMask:CPDragOperationCopy | CPDragOperationMove forLocal:YES];
[_tableView setDraggingSourceOperationMask:CPDragOperationCopy forLocal:NO];
[_tableView setAutosaveName:@"SmartFoldersDemo.PeopleTable"];
[_tableView setAutosaveName:@"People.PeopleTable"];
[_tableView setAutosaveTableColumns:YES];
[scrollView setDocumentView:_tableView];
@@ -1,6 +1,6 @@
/*
* Person.j
* SmartFoldersDemo
* People
*
* The record type shown in the people table. Plain KVC/KVO compliant model
* object: every property is exercised by bindings (table columns, detail
@@ -1,6 +1,6 @@
/*
* PersonDetailViewController.j
* SmartFoldersDemo
* People
*
* Detail pane below the people table. Every control is bound to
* arrayController.selection.<key>, which exercises CPControllerSelectionProxy,
@@ -1,4 +1,4 @@
# SmartFoldersDemo
# People
Non-document-based Cappuccino integration test, built entirely in code (no cib).
File renamed without changes.

Before

Width:  |  Height:  |  Size: 301 B

After

Width:  |  Height:  |  Size: 301 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 301 B

After

Width:  |  Height:  |  Size: 301 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 268 B

After

Width:  |  Height:  |  Size: 268 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 268 B

After

Width:  |  Height:  |  Size: 268 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 369 B

After

Width:  |  Height:  |  Size: 369 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 369 B

After

Width:  |  Height:  |  Size: 369 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 315 B

After

Width:  |  Height:  |  Size: 315 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 315 B

After

Width:  |  Height:  |  Size: 315 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 301 B

After

Width:  |  Height:  |  Size: 301 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 301 B

After

Width:  |  Height:  |  Size: 301 B

@@ -1,6 +1,6 @@
/*
* SettingsWindowController.j
* SmartFoldersDemo
* People
*
* Settings window with the application's appearance: Light, Dark or Auto, which follows
* the system. The choice is kept in the user defaults and applied at launch.
@@ -9,7 +9,7 @@
@import <AppKit/AppKit.j>
var SettingsAppearanceKey = @"SmartFoldersDemoAppearance",
var SettingsAppearanceKey = @"PeopleAppearance",
SettingsAppearanceNames = [CPAppearanceNameAqua, CPAppearanceNameDarkAqua, nil],
SettingsAutoSegment = 2,
SettingsAppearanceDidResetNotification = @"SettingsAppearanceDidResetNotification";
@@ -1,6 +1,6 @@
/*
* SmartFolderEditorController.j
* SmartFoldersDemo
* People
*
* Document-modal sheet for creating / editing a smart folder. Exercises:
* - CPWindowController owning a CPDocModalWindowMask window, run as a sheet
@@ -1,6 +1,6 @@
/*
* SourceListViewController.j
* SmartFoldersDemo
* People
*
* Sidebar. Exercises:
* - CPViewController with a programmatic -loadView
@@ -2,7 +2,7 @@
<html lang="en">
<!--
index-debug.html
SmartFoldersDemoUpdated
People
Created by You on October 20, 2026.
Copyright 2026, Your Company All rights reserved.
@@ -25,7 +25,7 @@
<link rel="apple-touch-icon" href="Resources/icon.png">
<link rel="apple-touch-startup-image" href="Resources/default.png">
<title>SmartFoldersDemoUpdated</title>
<title>People</title>
<!-- Custom javascript goes here -->
<!-- End custom javascript -->
File renamed without changes.
File renamed without changes.