Skip to content

Instantly share code, notes, and snippets.

@import <Foundation/CPObject.j>
@implementation AppController : CPObject
{
}
- (void)applicationDidFinishLaunching:(CPNotification)aNotification
{
var theWindow = [[CPWindow alloc] initWithContentRect:CGRectMakeZero() styleMask:CPBorderlessBridgeWindowMask],
@chandlerkent
chandlerkent / test
Created March 18, 2009 14:12
test description
test file 2
TEST TEXT
TEST TEXT
/*
* AppController.j
* NewApplication
*
* Created by You on May 21, 2009.
* Copyright 2009, Your Company All rights reserved.
*/
@import <Foundation/CPObject.j>
/*
* AppController.j
* NewApplication
*
* Created by You on May 21, 2009.
* Copyright 2009, Your Company All rights reserved.http://gist.github.com/gists/123934/edit#
*/
@import <Foundation/CPObject.j>
if ([self pullsDown])
{
var items = [_menu itemArray];
if ([items count] > 0)
item = items[0];
}
else
item = [self selectedItem];
// Test case for the issue: http://github.com/280north/cappuccino/issues/#issue/192
/*
* AppController.j
* NewApplication
*
* Created by You on May 21, 2009.
* Copyright 2009, Your Company All rights reserved.
*/
// Related to the issue: http://github.com/280north/cappuccino/issues/#issue/192
// Line 551 of AppKit/CPPopUpButton.j
- (void)synchronizeTitleAndSelectedItem
{
var item = nil;
if ([self pullsDown]) // Do we even need this check?
{
// Test case for Cappuccino bug #190: http://github.com/280north/cappuccino/issues#issue/190
/*
* AppController.j
* NewApplication
*
* Created by You on May 21, 2009.
* Copyright 2009, Your Company All rights reserved.
*/