-
-
Save chamons/5e5045841aee826b396e 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
@implementation MyDel | |
- (void)comboBoxSelectionDidChange:(NSNotification *)notification | |
{ | |
NSLog (@"Did Change"); | |
} | |
- (void)comboBoxSelectionIsChanging:(NSNotification *)notification | |
{ | |
NSLog (@"Is Changing"); | |
} | |
@end | |
@implementation ViewController | |
- (void)viewDidLoad { | |
[super viewDidLoad]; | |
NSComboBox * b = [[NSComboBox alloc] initWithFrame:NSMakeRect(0, 0, 200, 25)]; | |
[b addItemsWithObjectValues:@[@"1", @"2", @"3"]]; | |
b.delegate = [[MyDel alloc]init]; | |
[[self view]addSubview:b]; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment