Created
June 18, 2009 21:54
-
-
Save luisdelarosa/132223 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
- (void)awakeFromNib { | |
NSView *contentView = [window contentView]; | |
for (int i = 0; i < 10; i++) { | |
NSTextField *label = [[NSTextField alloc] initWithFrame: NSMakeRect(10, i * 40, 120, 30)]; | |
[label setStringValue:@"foo"]; | |
[contentView addSubview: label]; | |
NSTextField *text = [[NSTextField alloc] initWithFrame: NSMakeRect(100, i * 40, 120, 30)]; | |
[text setStringValue:@"foo"]; | |
[contentView addSubview: text]; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment