Created
June 20, 2011 21:15
-
-
Save bdittmer/1036606 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
@import <AppKit/AppKit.j> | |
@implementation WVNavigationItem : CPView { | |
IBOutlet CPImageView iconImageView; | |
IBOutlet CPTextField nameTextField; | |
id delegate; | |
} | |
- (void)setImageName:(CPString)imageName { | |
[iconImageView setImage:[[CPImage alloc] initWithContentsOfFile:imageName]]; | |
} | |
- (void)setItemName:(CPString)itemName { | |
[nameTextField setStringValue:itemName]; | |
} | |
- (void)setDelegate:(id)aDelegate { | |
delegate = aDelegate; | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment