I'm writing a Mac application, and I have a text field whose contents I would like to update. In the Interface Builder I control-dragged my text field into AppDelegate.h, which created the line
@property (unsafe_unretained) IBOutlet NSTextField *cStatus;
Now in my AppDelegate.m I want to edit the status, in the following function:
static void Handle_DeviceMatchingCallback(void *inContext, IOReturn inResult, void *inSender, IOHIDDeviceRef inIOHIDDeviceRef){
NSLog(@"\nDevice added: %p\nDevice count: %ld", (void*)inIOHIDDeviceRef, USBDeviceCount(inSender));
[cStatus setString:@"Connected"];
}
but this gives me the error "Use of undeclared variable cStatus". I'm very new to XCode, InterfaceBuilder, and Objective C in general, how do I reference this text field? Thanks.