Collection

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 AppDelegateActionViewControllerActionRequestHandlerCocoa 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 AppDelegateViewControllerDocumentCocoa APIs. Delegate or data-source callbacks
Enhancing your custom text engine with Writing Tools macOS A Swift sample with the source-visible chain WritingToolsSampleAppDocumentViewControllerDocumentViewModelCocoa 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 AppDelegateViewControllerCocoa APIs. Delegate or data-source callbacks
Navigating Hierarchical Data Using Outline and Split Views macOS A Swift sample with the source-visible chain AppDelegateFileViewControllerCocoa / 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 AppDelegateBaseViewControllerCocoa 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 AppDelegateMainWindowControllerDataModelManagerWindowRestorationHandlerAppKit 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 AppDelegateViewControllerFilePromiseProviderCocoa / 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 AppDelegateImageCanvasControllerCocoa / 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 AppDelegateViewControllerFilePromiseProviderCocoa / 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.