Created
January 16, 2009 01:10
-
-
Save nickjs/47747 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var field = [[CPTextField alloc] initWithFrame:CGRectMake(300,300,100,20)]; | |
[field setBordered:YES]; | |
[field setBezeled:YES]; | |
[field setEditable:YES]; | |
[field setBezelStyle:CPTextFieldSquareBezel]; | |
[field setStringValue:"7"] | |
[BridgeWindowView addSubview:field]; | |
[BridgeWindow makeFirstResponder:field]; | |
var result = [[CPTextField alloc] initWithFrame:CGRectMake(300,400,100,20)]; | |
[result bind:@"stringValue" toObject:field withKeyPath:@"stringValue" options:nil]; | |
[BridgeWindowView addSubview:result]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment