Created
April 1, 2010 06:28
-
-
Save endash/351464 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
@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