Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.
/ Cup-demo Public archive

A demo app for Cup, the ultimate file upload framework for Cappuccino.

Notifications You must be signed in to change notification settings

aparajita/Cup-demo

Repository files navigation

Cup Demo

This application is a demo of Cup, the ultimate upload framework for Cappuccino. It provides a fairly complete overview of Cup's features. Currently everything is configured in the xib, so if you are not running on Mac OS X it won't be much help in terms of learning how to configure Cup through code.

Installation

There are a few things you will need to do before running the demo:

  1. Install Cup by following the installation instructions.
  2. Configure your web server (it must be able to server php) to the cup-demo directory.
  3. Copy or symlink the Cup framework into the application's Frameworks directory. One easy way to do this:
cd /path/to/cup-demo
capp gen -lf -F Cup .

If you need to change the URL for the upload server, you can do it in Xcode in or AppController.j.

Xcode

  1. Open the demo in XcodeCapp (xcc /path/to/cup-demo) and open the Xcode project if necessary.
  2. Edit MainMenu.xib.
  3. Select the Cup object in the object list.
  4. Select the Identity Inspector.
  5. Change the value of the "URL" item in User Defined Runtime Attributes to the address of your upload server.

AppController.j

In applicationDidFinishLaunching:, add this line of code:

[uploader setURL:@"http://host/path/to/upload/handler"];

About

A demo app for Cup, the ultimate file upload framework for Cappuccino.

Resources

Stars

Watchers

Forks

Packages

No packages published