Skip to content

Instantly share code, notes, and snippets.

var splitView = [[CPSplitView alloc] initWithFrame:CGRectMake(0.0, 0.0, CGRectGetWidth([contentView bounds]), CGRectGetHeight([contentView bounds]))];
[splitView setIsPaneSplitter: YES];
[splitView setVertical:YES];
[splitView setDelegate: nil];
[splitView setAutoresizingMask: CPViewWidthSizable | CPViewHeightSizable];
[splitView setBackgroundColor: [CPColor darkGrayColor]];
[contentView addSubview: splitView];
// Sidebar
var sidebar = [[SidebarView alloc] init:contentView];
// Using themeAttribute's
[aTextField setValue: [CPFont boldSystemFontOfSize:11.0] forThemeAttribute:@"font"];
[aTextField setValue: CPCenterTextAlignment forThemeAttribute:@"alignment"];
[aTextField setValue: [CPColor colorWithHexString: "677482"] forThemeAttribute:@"text-color"];
// Else TextField Methods.
[aTextField setFont:[CPFont boldSystemFontOfSize:11.0]];
[aTextField setAlignment: CPCenterTextAlignment];
[aTextField setTextColor: [CPColor colorWithHexString: @"677482"]];
/*
* AppController.j
* textfield
*
* Created by You on October 9, 2009.
* Copyright 2009, Your Company All rights reserved.
*/
@import <Foundation/CPObject.j>
@import "MyTextField.j"
// #if PLATFORM(DOM)
var CPTextViewDOMInputElement = nil;
// #endif
@implementation CPTextView : CPTextField
{
}