<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>LPSwitch.j</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -9,11 +9,13 @@
 @import &lt;LPKit/LPSlideView.j&gt;
 @import &lt;LPKit/LPCalendarView.j&gt;
 @import &lt;LPKit/LPSparkLine.j&gt;
+@import &lt;LPKit/LPSwitch.j&gt;
 
 @implementation AppController : CPObject
 {
     LPSlideView slideView;
     CPTextField calendarSelectionLabel;
+    CPTextField switchStatusLabel;
 }
 
 - (void)applicationDidFinishLaunching:(CPNotification)aNotification
@@ -21,11 +23,13 @@
     var theWindow = [[CPWindow alloc] initWithContentRect:CGRectMakeZero() styleMask:CPBorderlessBridgeWindowMask],
         contentView = [theWindow contentView];
 
+/*
+
     /*
     
         LPSlideView
     
-    */
+    *
 
     var slideViewLabel = [CPTextField labelWithTitle:@&quot;LPSlideView&quot;];
     [slideViewLabel setFrameOrigin:CGPointMake(100, 70)];
@@ -65,7 +69,7 @@
     
         LPCalendarView
     
-    */
+    *
 
     var slideViewLabel = [CPTextField labelWithTitle:@&quot;LPCalendarView&quot;];
     [slideViewLabel setFrameOrigin:CGPointMake(400, 70)];
@@ -76,19 +80,19 @@
     [calendarView setDelegate:self];
     [contentView addSubview:calendarView];
     
-    calendarSelectionLabel = [CPTextField labelWithTitle:@&quot;&quot;];
+    calendarSelectionLabel = [CPTextField textFieldWithStringValue:@&quot;&quot; placeholder:@&quot;selection&quot; width:300];
     [calendarSelectionLabel setFrameOrigin:CGPointMake(400,270)]
     [contentView addSubview:calendarSelectionLabel];
 
     /*
     
-        LPCalendarView
+        LPSparkLine
     
-    */
+    *
 
-    var slideViewLabel = [CPTextField labelWithTitle:@&quot;LPSparkLine&quot;];
-    [slideViewLabel setFrameOrigin:CGPointMake(680, 70)];
-    [contentView addSubview:slideViewLabel];
+    var sparkLineLabel = [CPTextField labelWithTitle:@&quot;LPSparkLine&quot;];
+    [sparkLineLabel setFrameOrigin:CGPointMake(680, 70)];
+    [contentView addSubview:sparkLineLabel];
     
     var sparkLine = [[LPSparkLine alloc] initWithFrame:CGRectMake(680, 100, 100, 30)];
     [sparkLine setLineWeight:2.0];
@@ -97,10 +101,31 @@
     [sparkLine setData:[10,25,30,42,10,30,22,70,30,21,44,21,77,55,88,54]];
     [contentView addSubview:sparkLine];
 
+
+    /*
+    
+        LPSwitch
+    
+    */
+
+    var switchLabel = [CPTextField labelWithTitle:@&quot;LPSwitch&quot;];
+    [switchLabel setFrameOrigin:CGPointMake(100, 340)];
+    [contentView addSubview:switchLabel];
+    
+    var aSwitch = [[LPSwitch alloc] initWithFrame:CGRectMake(100,380,0,0)];
+    [aSwitch setTarget:self];
+    [aSwitch setAction:@selector(switchDidChange:)];
+    [contentView addSubview:aSwitch];
+    
+    switchStatusLabel = [CPTextField labelWithTitle:@&quot;off&quot;];
+    [switchStatusLabel setFrameOrigin:CGPointMake(100,410)];
+    [contentView addSubview:switchStatusLabel];
+
     /*
         --
     */
     
+    //[theWindow setAcceptsMouseMovedEvents:YES];
     [theWindow orderFront:self];
 
     // Uncomment the following line to turn on the standard menu bar.
@@ -114,10 +139,15 @@
     [slideView slideToView:[[slideView subviews] objectAtIndex:index]];
 }
 
--(void)calendarView:(LPCalendarView)aCalendarView didMakeSelection:(CPDate)aStartDate end:(CPDate)anEndDate
+- (void)calendarView:(LPCalendarView)aCalendarView didMakeSelection:(CPDate)aStartDate end:(CPDate)anEndDate
+{
+    [calendarSelectionLabel setStringValue:[CPString stringWithFormat:@&quot;Selected: %s&quot;, aStartDate.toUTCString()]];
+}
+
+- (void)switchDidChange:(id)sender
 {
-    [calendarSelectionLabel setStringValue:[CPString stringWithFormat:@&quot;Selected: %s&quot;, aStartDate]];
-    [calendarSelectionLabel sizeToFit];
+    [switchStatusLabel setStringValue:([sender isOn]) ? @&quot;on&quot; : @&quot;off&quot;];
+    [switchStatusLabel sizeToFit];
 }
 
 @end</diff>
      <filename>Examples/AppController.j</filename>
    </modified>
    <modified>
      <diff>@@ -2,7 +2,7 @@
  * LPURLPostRequest.j
  * LPKit
  *
- * Created by Ludwig Pettersson on May 20, 2009.
+ * Created by Ludwig Pettersson on November 7, 2009.
  * 
  * The MIT License
  * </diff>
      <filename>LPURLPostRequest.j</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>642f8a0e8fa3bcf129def88a8b2c72343f124890</id>
    </parent>
  </parents>
  <author>
    <name>luddep</name>
    <email>luddep@gmail.com</email>
  </author>
  <url>http://github.com/luddep/LPKit/commit/7dfbb862e70fd5736e2d4648fc7364ba25d012df</url>
  <id>7dfbb862e70fd5736e2d4648fc7364ba25d012df</id>
  <committed-date>2009-11-07T11:59:16-08:00</committed-date>
  <authored-date>2009-11-07T11:59:16-08:00</authored-date>
  <message>initial LPSwitch commit, not yet finished.</message>
  <tree>c5713ce79abf4106fa25b13e4131159895d25ff4</tree>
  <committer>
    <name>luddep</name>
    <email>luddep@gmail.com</email>
  </committer>
</commit>
