/* * AppController.j * cappuccino-keyequivalents * * Created by Alexander Ljungberg on July 20, 2010. * Copyright 2010, WireLoad, LLC All rights reserved. */ @import @implementation AppController : CPObject { } - (void)applicationDidFinishLaunching:(CPNotification)aNotification { var theWindow = [[CPWindow alloc] initWithContentRect:CGRectMakeZero() styleMask:CPBorderlessBridgeWindowMask], contentView = [theWindow contentView]; var label = [[CPTextField alloc] initWithFrame:CGRectMakeZero()]; [label setStringValue:@"Press Cmd-X on the keyboard for each button and verify that it reacts."]; [label setFont:[CPFont boldSystemFontOfSize:24.0]]; [label sizeToFit]; [label setAutoresizingMask:CPViewMinXMargin | CPViewMaxXMargin]; [label setFrameOrigin:CGPointMake(10, 10)]; [contentView addSubview:label]; var keysToTest = [ "a", ";", "-", "=", ",", ".", "/", "`", "'", "[", "\\", "]" ]; for (var i=0; i