Skip to content

Instantly share code, notes, and snippets.

@endash
Created April 1, 2010 06:28
Show Gist options
  • Save endash/351464 to your computer and use it in GitHub Desktop.
Save endash/351464 to your computer and use it in GitHub Desktop.
@implementation MyCustomView : SCView
{
}
- (void)createChildViews
{
[self createChildViewWithClass: [self classFor: 'Label']]
[[self operatingView] addBinding: [[self content] pathFor: 'Subject'] forKey: 'title']
[[self operatingView] setLayout: [self translateFromFrame: [self Frame] byX: 5 andByY: 10]]
[self appendView: [self operatingView]]
[self createChildViewWithClass: [self classFor: 'List']]
[[self operatingView] addBinding: [[self controller] pathFor: 'content'] forKey: 'content']
[[self operatingView] setLayout: [self translateFromFrame: [self Frame] byX: 5 andByY: 40]]
[self appendView: [self operatingView]]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment