I have an NSTextField subclass (called "txtField1" and used as Custom Class for a Text Field in my interface builder) and I would like to be able to access an NSComboBox object which present in my interface builder from this class.
This is my code: txtField1.h:
#import <Cocoa/Cocoa.h>
@interface txtField1 : NSTextField
@end
txtField.m:
#import "txtField1.h"
@implementation txtField1
-(void)mouseDown:(NSEvent *)theEvent
{
HERE I would like to be able to write something like:
[combobox SetHidden:YES];
}
@end
I would like to be able to set access the combobox SetHidden property, in the mouseDown event. Can you please tell me how to do that? I have tried different solutions found on internet but didn't obtain anything at all! Any help would be appreciated.