title: IBOutlet undeclared
body: <p>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</p>
  
  <pre><code>@property (unsafe_unretained) IBOutlet NSTextField *cStatus;
  </code></pre>
  
  <p>Now in my AppDelegate.m I want to edit the status, in the following function:</p>
  
  <pre><code>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"];
  }
  </code></pre>
  
  <p>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.</p>