From 33465b8bedeb9bed2fcd07e285af05807ea3333f Mon Sep 17 00:00:00 2001 From: Ross Boucher Date: Mon, 4 Jan 2010 15:33:12 -0500 Subject: [PATCH] A bunch of changes to the cappuccino demos, mostly for use on the new cappuccino.org --- .../Alert Window Layout/Info.plist | 4 ++ .../Alert Window Layout/index-debug.html | 59 ++++++++++++---- .../Alert Window Layout/index-deploy.html | 68 +++++++++++++++++++ .../Alert Window Layout/index.html | 58 ++++++++++++---- AutomaticLayout/iTunes Layout/Info.plist | 4 ++ .../iTunes Layout/index-debug.html | 59 ++++++++++++---- .../iTunes Layout/index-deploy.html | 68 +++++++++++++++++++ AutomaticLayout/iTunes Layout/index.html | 58 ++++++++++++---- FlickrPhoto/AppController.j | 2 +- FlickrPhoto/Info.plist | 4 ++ FlickrPhoto/index-deploy.html | 63 +++++++++++++++++ FloorPlan/Info.plist | 4 ++ FloorPlan/index-deploy.html | 68 +++++++++++++++++++ FloorPlan/index.html | 9 ++- LightsOff/Info.plist | 4 ++ LightsOff/index-deploy.html | 68 +++++++++++++++++++ LightsOff/index.html | 13 ++-- MultipleWindows/Info.plist | 6 +- MultipleWindows/index-debug.html | 63 +++++++++++++---- MultipleWindows/index-deploy.html | 68 +++++++++++++++++++ MultipleWindows/index.html | 63 ++++++++++++----- Puzzle/Info.plist | 6 ++ Puzzle/index-deploy.html | 68 +++++++++++++++++++ Scrapbook/Part 1/Info.plist | 4 ++ Scrapbook/Part 1/index-debug.html | 60 ++++++++++++---- Scrapbook/Part 1/index-deploy.html | 68 +++++++++++++++++++ Scrapbook/Part 1/index.html | 59 ++++++++++++---- Scrapbook/Part 2/Info.plist | 4 ++ Scrapbook/Part 2/index-debug.html | 62 +++++++++++++---- Scrapbook/Part 2/index-deploy.html | 68 +++++++++++++++++++ Scrapbook/Part 2/index.html | 59 ++++++++++++---- 31 files changed, 1127 insertions(+), 144 deletions(-) create mode 100644 AutomaticLayout/Alert Window Layout/index-deploy.html create mode 100644 AutomaticLayout/iTunes Layout/index-deploy.html create mode 100644 FlickrPhoto/index-deploy.html create mode 100644 FloorPlan/index-deploy.html create mode 100644 LightsOff/index-deploy.html create mode 100644 MultipleWindows/index-deploy.html create mode 100644 Puzzle/index-deploy.html create mode 100644 Scrapbook/Part 1/index-deploy.html create mode 100644 Scrapbook/Part 2/index-deploy.html diff --git a/AutomaticLayout/Alert Window Layout/Info.plist b/AutomaticLayout/Alert Window Layout/Info.plist index 197e894..d3394b8 100644 --- a/AutomaticLayout/Alert Window Layout/Info.plist +++ b/AutomaticLayout/Alert Window Layout/Info.plist @@ -8,5 +8,9 @@ Alert Window Layout CPPrincipalClass CPApplication + CPDescription + + Simple sample code illustrating how to use the CPAlert class to construct a modal alert message. + diff --git a/AutomaticLayout/Alert Window Layout/index-debug.html b/AutomaticLayout/Alert Window Layout/index-debug.html index d6c5f15..60f0d5d 100644 --- a/AutomaticLayout/Alert Window Layout/index-debug.html +++ b/AutomaticLayout/Alert Window Layout/index-debug.html @@ -1,15 +1,16 @@ - - - + + + + Alert Window Layout @@ -20,14 +21,48 @@ + + + + - -
-
- -
+ +
+ + +
- - + + \ No newline at end of file diff --git a/AutomaticLayout/Alert Window Layout/index-deploy.html b/AutomaticLayout/Alert Window Layout/index-deploy.html new file mode 100644 index 0000000..4633c27 --- /dev/null +++ b/AutomaticLayout/Alert Window Layout/index-deploy.html @@ -0,0 +1,68 @@ + + + + + + + + Alert Window Layout + + + + + + + + + + + + +
+ + + +
+ + + \ No newline at end of file diff --git a/AutomaticLayout/Alert Window Layout/index.html b/AutomaticLayout/Alert Window Layout/index.html index b4b652b..6673bb1 100644 --- a/AutomaticLayout/Alert Window Layout/index.html +++ b/AutomaticLayout/Alert Window Layout/index.html @@ -1,15 +1,16 @@ - - - + + + + Alert Window Layout @@ -19,15 +20,48 @@ + + + - -
-
- -
+ +
+ + +
- - + + \ No newline at end of file diff --git a/AutomaticLayout/iTunes Layout/Info.plist b/AutomaticLayout/iTunes Layout/Info.plist index ddc2203..62b3e3d 100644 --- a/AutomaticLayout/iTunes Layout/Info.plist +++ b/AutomaticLayout/iTunes Layout/Info.plist @@ -8,5 +8,9 @@ iTunes Layout CPPrincipalClass CPApplication + CPDescription + + Showcases the absolute basics of autoresizing masks. Play around with resizing your browser window to see the effects of the various masks, then look at the code to see how to put it together. + diff --git a/AutomaticLayout/iTunes Layout/index-debug.html b/AutomaticLayout/iTunes Layout/index-debug.html index fda5ce8..55b96e9 100644 --- a/AutomaticLayout/iTunes Layout/index-debug.html +++ b/AutomaticLayout/iTunes Layout/index-debug.html @@ -1,15 +1,16 @@ - - - + + + + iTunes Layout @@ -20,14 +21,48 @@ + + + + - -
-
- -
+ +
+ + +
- - + + \ No newline at end of file diff --git a/AutomaticLayout/iTunes Layout/index-deploy.html b/AutomaticLayout/iTunes Layout/index-deploy.html new file mode 100644 index 0000000..edec41d --- /dev/null +++ b/AutomaticLayout/iTunes Layout/index-deploy.html @@ -0,0 +1,68 @@ + + + + + + + + iTunes Layout + + + + + + + + + + + + +
+ + + +
+ + + \ No newline at end of file diff --git a/AutomaticLayout/iTunes Layout/index.html b/AutomaticLayout/iTunes Layout/index.html index 7d20f1b..d8920af 100644 --- a/AutomaticLayout/iTunes Layout/index.html +++ b/AutomaticLayout/iTunes Layout/index.html @@ -1,15 +1,16 @@ - - - + + + + iTunes Layout @@ -19,15 +20,48 @@ + + + - -
-
- -
+ +
+ + +
- - + + \ No newline at end of file diff --git a/FlickrPhoto/AppController.j b/FlickrPhoto/AppController.j index 23c4a55..4fc78fc 100644 --- a/FlickrPhoto/AppController.j +++ b/FlickrPhoto/AppController.j @@ -213,7 +213,7 @@ var SliderToolbarItemIdentifier = "SliderToolbarItemIdentifier", if (anItemIdentifier == SliderToolbarItemIdentifier) { - [toolbarItem setView:[[PhotoResizeView alloc] initWithFrame:CGRectMake(0, 0, 180, 50)]]; + [toolbarItem setView:[[PhotoResizeView alloc] initWithFrame:CGRectMake(0, 0, 180, 32)]]; [toolbarItem setMinSize:CGSizeMake(180, 32)]; [toolbarItem setMaxSize:CGSizeMake(180, 32)]; [toolbarItem setLabel:"Scale"]; diff --git a/FlickrPhoto/Info.plist b/FlickrPhoto/Info.plist index ac07200..f0203e8 100644 --- a/FlickrPhoto/Info.plist +++ b/FlickrPhoto/Info.plist @@ -8,5 +8,9 @@ FlickrPhoto CPPrincipalClass CPApplication + CPDescription + + This example creates an iPhoto like application that loads photos from Flickr. It's a good example of using toolbars, collection views, and JSONP style remote URL requests. + diff --git a/FlickrPhoto/index-deploy.html b/FlickrPhoto/index-deploy.html new file mode 100644 index 0000000..8aa0711 --- /dev/null +++ b/FlickrPhoto/index-deploy.html @@ -0,0 +1,63 @@ + + + + + + + Flickr Photo Demo + + + + + + + + + + + + +
+ + + +
+ + + + diff --git a/FloorPlan/Info.plist b/FloorPlan/Info.plist index 231a71a..63bc6af 100644 --- a/FloorPlan/Info.plist +++ b/FloorPlan/Info.plist @@ -8,5 +8,9 @@ FloorPlan CPPrincipalClass CPApplication + CPDescription + + FloorPlan is a simple app to help you design the floor plan of your new apartment. The demo uses several collection views and collection view delegate methods. It also shows how to implement drag and drop, copy and paste, and undo and redo. + diff --git a/FloorPlan/index-deploy.html b/FloorPlan/index-deploy.html new file mode 100644 index 0000000..d1a16ec --- /dev/null +++ b/FloorPlan/index-deploy.html @@ -0,0 +1,68 @@ + + + + + + + + FloorPlan + + + + + + + + + + + + +
+ + + +
+ + + \ No newline at end of file diff --git a/FloorPlan/index.html b/FloorPlan/index.html index 883539d..1cc2935 100644 --- a/FloorPlan/index.html +++ b/FloorPlan/index.html @@ -1,3 +1,9 @@ + - - + \ No newline at end of file diff --git a/LightsOff/Info.plist b/LightsOff/Info.plist index e4db8d7..235dada 100644 --- a/LightsOff/Info.plist +++ b/LightsOff/Info.plist @@ -8,5 +8,9 @@ Lights Off CPPrincipalClass CPApplication + CPDescription + + A port of the fun iPhone game, Lights Off. + diff --git a/LightsOff/index-deploy.html b/LightsOff/index-deploy.html new file mode 100644 index 0000000..c8abbd8 --- /dev/null +++ b/LightsOff/index-deploy.html @@ -0,0 +1,68 @@ + + + + + + + + LightsOff + + + + + + + + + + + + +
+ + + +
+ + + \ No newline at end of file diff --git a/LightsOff/index.html b/LightsOff/index.html index 3b8f89b..505f79b 100644 --- a/LightsOff/index.html +++ b/LightsOff/index.html @@ -1,3 +1,9 @@ + - Lights Off + LightsOff
- - + \ No newline at end of file diff --git a/MultipleWindows/Info.plist b/MultipleWindows/Info.plist index 92ab8b5..9293195 100644 --- a/MultipleWindows/Info.plist +++ b/MultipleWindows/Info.plist @@ -5,8 +5,12 @@ CPApplicationDelegateClass AppController CPBundleName - Hello World + Multiple Windows CPPrincipalClass CPApplication + CPDescription + + This is a collection of various windows and window styles. A good example of toolbars, full bridge windows, and platform windows. + diff --git a/MultipleWindows/index-debug.html b/MultipleWindows/index-debug.html index 392b37a..99aa6ea 100644 --- a/MultipleWindows/index-debug.html +++ b/MultipleWindows/index-debug.html @@ -1,19 +1,18 @@ + - + - Hello World + MultipleWindows + + + + - -
-
- -
+ +
+ + +
- + diff --git a/MultipleWindows/index-deploy.html b/MultipleWindows/index-deploy.html new file mode 100644 index 0000000..b58eac2 --- /dev/null +++ b/MultipleWindows/index-deploy.html @@ -0,0 +1,68 @@ + + + + + + + + MultipleWindows + + + + + + + + + + + + +
+ + + +
+ + + diff --git a/MultipleWindows/index.html b/MultipleWindows/index.html index fbcf5a9..28b0310 100644 --- a/MultipleWindows/index.html +++ b/MultipleWindows/index.html @@ -1,19 +1,18 @@ + - + - Hello World + Puzzle + + + - -
-
- -
+ +
+ + +
- - + diff --git a/Puzzle/Info.plist b/Puzzle/Info.plist index d0e0258..72c357c 100644 --- a/Puzzle/Info.plist +++ b/Puzzle/Info.plist @@ -8,5 +8,11 @@ Puzzle CPPrincipalClass CPApplication + CPDescription + + A rough implementation of a Cappuccino based iPhone app. + + CPDemoExcluded + diff --git a/Puzzle/index-deploy.html b/Puzzle/index-deploy.html new file mode 100644 index 0000000..99a62f6 --- /dev/null +++ b/Puzzle/index-deploy.html @@ -0,0 +1,68 @@ + + + + + + + + Puzzle + + + + + + + + + + + + +
+ + + +
+ + + diff --git a/Scrapbook/Part 1/Info.plist b/Scrapbook/Part 1/Info.plist index 1e302b3..51a02a0 100644 --- a/Scrapbook/Part 1/Info.plist +++ b/Scrapbook/Part 1/Info.plist @@ -8,5 +8,9 @@ Scrapbook CPPrincipalClass CPApplication + CPDescription + + Part 1 of a multi-part application tutorial. This part shows how to handle mouse events, and how to perform simple transformations like scaling and rotation to an image. + diff --git a/Scrapbook/Part 1/index-debug.html b/Scrapbook/Part 1/index-debug.html index 211630e..b543f89 100644 --- a/Scrapbook/Part 1/index-debug.html +++ b/Scrapbook/Part 1/index-debug.html @@ -1,17 +1,16 @@ - - - + + + + Scrapbook @@ -22,15 +21,48 @@ + + + + - -
-
- -
+ +
+ + +
- - + diff --git a/Scrapbook/Part 1/index-deploy.html b/Scrapbook/Part 1/index-deploy.html new file mode 100644 index 0000000..ba31d89 --- /dev/null +++ b/Scrapbook/Part 1/index-deploy.html @@ -0,0 +1,68 @@ + + + + + + + + Scrapbook + + + + + + + + + + + + +
+ + + +
+ + + diff --git a/Scrapbook/Part 1/index.html b/Scrapbook/Part 1/index.html index 329fd1e..bd89061 100644 --- a/Scrapbook/Part 1/index.html +++ b/Scrapbook/Part 1/index.html @@ -1,17 +1,16 @@ - - - + + + + Scrapbook @@ -21,16 +20,48 @@ + + + - -
-
- -
+ +
+ + +
- - + diff --git a/Scrapbook/Part 2/Info.plist b/Scrapbook/Part 2/Info.plist index 1e302b3..b69e072 100644 --- a/Scrapbook/Part 2/Info.plist +++ b/Scrapbook/Part 2/Info.plist @@ -8,5 +8,9 @@ Scrapbook CPPrincipalClass CPApplication + CPDescription + + Part 2 of a multi-part application tutorial. This part adds support for dragging pictures into the editing area from a library of pictures in a floating inspector. + diff --git a/Scrapbook/Part 2/index-debug.html b/Scrapbook/Part 2/index-debug.html index 211630e..64d540f 100644 --- a/Scrapbook/Part 2/index-debug.html +++ b/Scrapbook/Part 2/index-debug.html @@ -1,17 +1,16 @@ - - - + + + + Scrapbook @@ -20,17 +19,50 @@ OBJJ_INCLUDE_PATHS = ["Frameworks/Debug", "Frameworks", "SomethingElse"]; - + + + + + - -
-
- -
+ +
+ + +
- - + diff --git a/Scrapbook/Part 2/index-deploy.html b/Scrapbook/Part 2/index-deploy.html new file mode 100644 index 0000000..ba31d89 --- /dev/null +++ b/Scrapbook/Part 2/index-deploy.html @@ -0,0 +1,68 @@ + + + + + + + + Scrapbook + + + + + + + + + + + + +
+ + + +
+ + + diff --git a/Scrapbook/Part 2/index.html b/Scrapbook/Part 2/index.html index 329fd1e..bd89061 100644 --- a/Scrapbook/Part 2/index.html +++ b/Scrapbook/Part 2/index.html @@ -1,17 +1,16 @@ - - - + + + + Scrapbook @@ -21,16 +20,48 @@ + + + - -
-
- -
+ +
+ + +
- - +