mingsai / demomonkey Goto Github PK
View Code? Open in Web Editor NEWOSX 10.10 Compatible version of Apple's Demo Monkey
OSX 10.10 Compatible version of Apple's Demo Monkey
### DemoMonkey ### =========================================================================== DESCRIPTION: This example shows how to use pasteboard and services APIs for Mac OS X v10.6 and later. The example is a document-based application which serves as a "typing assistant". Each document contains a collection of text snippets which you can insert in turn into another application using a service. When creating a document, you can import text snippets also using a service. The application uses the pasteboard to support copy and paste and drag and drop. Drag and drop is illustrated using a subclass of NSArrayController in conjunction with Cocoa bindings. =========================================================================== BUILD REQUIREMENTS: Xcode 3.2 or later, Mac OS X v10.6 or later. =========================================================================== RUNTIME REQUIREMENTS: Mac OS X v10.6 or later. =========================================================================== PACKAGING LIST: MyDocument.{h,m} Document object to manage a collection of text snippets; the snippets may be displayed in one or two windows: * A window managed by a DisplayController window controller which is solely for display purposes; * Optionally, a window managed by an EditController window controller, which is used for editing the snippets. DisplayController.{h,m} A window controller to display the titles of the text snippets. EditController.{h,m} A window controller to manage editing the text snippets. AppDelegate.{h,m} Application delegate class to act as the Services provider. Services requests are routed to the current main document. The delegate also manages the application's preferences. DMKArrayController.{h,m} An array controller subclass to manage a collection of text snippets, including support for drag and drop. Step.{h,m} A model object to represent a text snippet. The class conforms to the NSCoding, NSPasteboardReading, and NSPasteboardWriting protocols so that instances can be used with archives and written to and read from a pasteboard. =========================================================================== CHANGES FROM PREVIOUS VERSIONS: Version 1.1 - Removed extraneous comments and log statements. Updated implementation of initializer methods. Version 1.0 - First version. =========================================================================== Copyright (C) 2009-2010 Apple Inc. All rights reserved.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.