Skip to content

Instantly share code, notes, and snippets.

@luisdelarosa
Created June 18, 2009 21:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luisdelarosa/132223 to your computer and use it in GitHub Desktop.
Save luisdelarosa/132223 to your computer and use it in GitHub Desktop.
- (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