AppKit sample architecture
Source-backed, high-level architecture notes for Apple sample-code pages grouped in the AppKit folder.
- Catalog module label:
AppKit - Coverage: 11 / 11 sample pages documented
- Source policy: archive hashes and extracted-tree references are verified locally before analysis
Samples
| Sample | Platforms | High-level architecture | Documented patterns |
|---|---|---|---|
| Add Functionality to Finder with Action Extensions | macOS | A Swift sample with the source-visible chain AppDelegate → ActionViewController → ActionRequestHandler → Cocoa APIs. |
Delegate or data-source callbacks |
| Creating and Customizing the Touch Bar | macOS | A C/Objective-C header, Objective-C, Swift sample bundle with entry-bearing project variants Objective-C, Swift, each leading to Cocoa / Contacts APIs. |
View-controller organization, Protocol-oriented abstraction, Delegate or data-source callbacks |
| Developing a Document-Based App | macOS | A Swift sample with the source-visible chain AppDelegate → ViewController → Document → Cocoa APIs. |
Delegate or data-source callbacks |
| Enhancing your custom text engine with Writing Tools | macOS | A Swift sample with the source-visible chain WritingToolsSampleApp → DocumentViewController → DocumentViewModel → Cocoa APIs. |
Model-View-ViewModel, View-controller organization, Delegate or data-source callbacks |
| Integrating a Toolbar and Touch Bar into Your App | macOS | A Swift sample with the source-visible chain AppDelegate → ViewController → Cocoa APIs. |
Delegate or data-source callbacks |
| Navigating Hierarchical Data Using Outline and Split Views | macOS | A Swift sample with the source-visible chain AppDelegate → FileViewController → Cocoa / UniformTypeIdentifiers APIs. |
View-controller organization, Protocol-oriented abstraction, Delegate or data-source callbacks |
| Organize Your User Interface with a Stack View | macOS | A Swift sample with the source-visible chain AppDelegate → BaseViewController → Cocoa APIs. |
View-controller organization, Protocol-oriented abstraction, Delegate or data-source callbacks |
| Restoring your app’s state with AppKit | macOS | A Swift sample with the source-visible chain AppDelegate → MainWindowController → DataModelManager → WindowRestorationHandler → AppKit APIs. |
View-controller organization, Protocol-oriented abstraction, Delegate or data-source callbacks |
| Supporting Collection View Drag and Drop Through File Promises | macOS | A Swift sample with the source-visible chain AppDelegate → ViewController → FilePromiseProvider → Cocoa / UniformTypeIdentifiers APIs. |
Protocol-oriented abstraction, Delegate or data-source callbacks |
| Supporting Drag and Drop Through File Promises | macOS | A Swift sample with the source-visible chain AppDelegate → ImageCanvasController → Cocoa / UniformTypeIdentifiers APIs. |
Protocol-oriented abstraction, Delegate or data-source callbacks |
| Supporting Table View Drag and Drop Through File Promises | macOS | A Swift sample with the source-visible chain AppDelegate → ViewController → FilePromiseProvider → Cocoa / UniformTypeIdentifiers APIs. |
View-controller organization, Protocol-oriented abstraction, Delegate or data-source callbacks |
Cross-sample signals
Recurring documented patterns
| Pattern label | Sample documents |
|---|---|
| Delegate or data-source callbacks | 11 |
| Protocol-oriented abstraction | 7 |
| View-controller organization | 6 |
Type-role naming evidence
Counts below are declaration-name suffixes, not inferred patterns.
| Role suffix | Distinct declarations across samples |
|---|---|
Controller |
61 |
View |
19 |
Delegate |
18 |
Operation |
4 |
Handler |
2 |
Manager |
2 |
Provider |
2 |
Document |
1 |
ViewModel |
1 |
Model |
1 |
Swift access-control evidence
These are declaration occurrences in scanned Swift source, including implicit internal declarations.
| Access level | Occurrences |
|---|---|
implicit internal |
1880 |
private |
153 |
public |
6 |
fileprivate |
1 |
private(set) |
1 |
References
Generated from the verified local catalog and completed Markdown documents.