The language is English.
A Swift rewrite of an Apple example that demonstrates the use of NSPageController.
"File Cards" are displayed for the contents of the user's Documents folder. You can swipe, click the arrow buttons or click on the entry in the table to switch between cards.
Implements the NSApplicationDelegate method that causes the app to terminate when the last window is closed.
Draws the rounded edge background of the file cards.
Simple wrapper around NSURL to make binding to file properties in IB easier.
An NSViewController subclass that shows how to programatically bind its tableView outlet to a shared arrayController's content and selectionIndexes properties.
An NSPageController subclass that also implements the NSPageControllerDelegate methods. There are 4 interesting advanced techniques shown in this file:
- How to use KVO to observe changes to the shared arrayController.selected index property.
- How to programmatically change the pageController.selectedIndex in response to the above.
- The use of more than 1 identifier so that we can have 2 card styles.
- Use of an optional NSPageControllerDelegate to control the layout of the card inside its parent view.
An NSWindowController subclass that provides the bulk of the application's logic. There are 2 interesting advanced techniques shown in this file:
- How to programmatically bind an arrayController to an array of FileObject instances.
- How to inject the array and its bound arrayController into our child view controllers.
The application's main storyboard file that defines the application's main menu, the main window controller and its associated view controllers.
Xcode 6.3, OS X 10.10
OS X 10.10 or later
- 1.0 - First version.
- 1.1 - First public version.
- 2.0 - First Swift version.
=========================================================================== Copyright (C) 2012-2014 Apple Inc. All rights reserved.